compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
Severity and exploitation
KEV coverage does not rule out exploitation.
Assessment 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:NAssessment 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:NSeverity
medium5.1CVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Exploit reference published
Source-linked evidence; not proof of attacks in the wild or independent validation.
Remediation
Package fixes recorded
Fix versions are recorded for 1 of 1 mapped packages. Check each release branch and any separate product guidance.
What this means
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.
Source excerpt · OSVAttack conditions
A later compose-lint check passes too, because no rule requires networks:.
Excerpt from the original source description below.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
tmatens · GitHub_M
compose-lint
1 range
tmatens · GitHub_M
compose-lint
Compare with this publisher’s ranges. This does not inspect your installation.
affected
>= 0.9.0, < 0.18.0
Other versions: unknown
Packages
Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.
| Affected range | Recorded fix |
|---|---|
| From 0.9.0 before 0.18.0Ecosystem versions | 0.18.0 |
Version evidence: OSV · GHSA-65v8-q222-64xx
View original version evidence (14 explicit versions)
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
Use the recorded fix for your release branch. Review the publisher’s instructions and test compatibility before upgrading.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
The sources identify public exploit references. We have not independently tested them; their availability does not establish exploitation in the wild.
tmatens/compose-lint · security/advisories/GHSA-65v8-q222-64xx ↗Attributed to CISA-ADPOriginal source description
Read the full publisher description
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
--apply, and don't runfix --applyover files from untrusted pull requests.
Reproduction
services:
web:
image: nginx@sha256:<digest>
labels:
note: "line one<U+2028>line two"
logging:
driver: none
networks: [internal]
networks:
internal:
internal: true
compose-lint fix --apply compose.yml on 0.17.0 reports applied 1 fix(es), exits 0, and removes both driver: none and networks: [internal].
References
8 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-123370View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 2
Assigning organization
Additional data publisher
Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changes- CVE · CVE-2026-123370
Observed 2026-11-14T02:48:02.514Z · upstream updated 2026-11-14T01:44:51.834Z
Prioritization updated
before
[]
after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-11-14T01:44:24.489636Z", "decisions": [ { "name": "Exploitation", "value": "poc" }, { "name": "Automatable", "value": "yes" }, { "name": "Technical Impact", "value": "partial" } ] } ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.