All vulnerabilities

PyPI

CVE-2026-123370

compose-lint: `fix --apply` can delete a line the user did not select, including a security setting

Severity
Medium
Published
10 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.18.0
Exploit chance
0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-193
Also known as
GHSA-65v8-q222-64xx
Sources
OSV.dev and GitHub

Description

compose-lint fix --apply converts the line numbers its fixers work with into positions in the file. The YAML parser treats a lone carriage return, U+0085, U+2028 and U+2029 as line breaks, but the conversion counted only \n. One of those characters inside a quoted value, which most editors and diff views don't show, shifted every later edit down by one line.

A Compose file from a pull request can use this to make a fix delete the line after the one it meant to change. For example, fixing CL-0014 (logging: driver: none) instead removes driver: none and the following networks: [internal], moving the service off an internal-only network onto the default bridge. The result is still valid Compose, every check fix runs after editing passes, and the command reports applied 1 fix(es) and exits 0. A later compose-lint check passes too, because no rule requires networks:.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

  • Upgrade to 0.18.0 or later.
  • On older versions, review the dry-run diff before --apply, and don't run fix --apply over files from untrusted pull requests.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
compose-lintPyPI · osv:PyPI:compose-lint
  • From 0.9.0 before 0.18.0

About compose-lint

Weekly downloads (PyPI)
2,476PyPI Stats, 24 Nov 2026

References