MEDIUMCVSS v4 5.1Vulnerability

CVE-2026-123370

### Impact `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:`. The dry-run diff (without `--apply`) does show the removed lines, but `--apply` prints only the note for the fix that was selected. A related crash on the same files could empty the SARIF output for every file in the run. GitHub Code Scanning rejects an empty SARIF upload, which fails the step, so that part does not report a false clean result there. Found during an internal pre-1.0 security review. **Docker image.** `composelint/compose-lint` tags 0.9.0 through 0.17.0, and the matching minor tags, are affected when used to run `fix --apply`. Fixed from `0.18.0`. The GitHub Action does not run `fix` and is not affected. ### Patches Fixed in 0.18.0. Line splitting and position conversion now share one definition of a line break, so they can't disagree. A Compose file containing an ambiguous line break (a lone `\r`, U+0085, U+2028 or U+2029) is refused with exit code 2, because no line numbering is correct for both the parser and the editor. CRLF and LF files are unaffected. ### Workarounds - Upgrade to 0.18.0 or later. - On older versions, review the dry-run diff before

Properties

Severity
medium
Summary
compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
Nvd fetched at
2026-11-10T23:33:48.924589+00:00
Epss score
0.0033
Cvss severity
MEDIUM
Cvss score
5.1
Retrieved at
2026-11-10T23:35:17+00:00
Ghsa published
2026-11-10T15:57:02Z
Source url
https://github.com/advisories/GHSA-65v8-q222-64xx
Ghsa updated
2026-11-10T15:57:16Z
Ghsa id
GHSA-65v8-q222-64xx
Last source
FIRST EPSS
Score
5.1
Cvss version
4.0
Cve id
CVE-2026-123370
Cvss vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-11-09T19:15:57+00:00
Name
CVE-2026-123370
Is ghsa only
false
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Related Entities (3)

AFFECTS (1)

→[Software]pip/compose-lint

HAS_WEAKNESS (1)

→[Weakness]Off-by-one Error

VULNERABLE_TO (1)

←[Software]pip/compose-lint

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-123370 (CVSS v4 5.1) — Ninja Signal Threat Intelligence | Ninja Signal