CVE-2026-123370: compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-65v8-q222-64xx
Summary
A line-break parsing discrepancy in compose-lint allows an attacker-controlled YAML file to cause `fix --apply` to delete unintended lines, including security configurations. Engineering teams maintaining applications that process untrusted Compose files with compose-lint should update immediately.
Who is affected
When using `compose-lint fix --apply`, a mismatch between YAML parser line breaks and position conversion logic allows hidden line separators (such as lone carriage returns, U+0085, U+2028, or U+2029) inside quoted values to shift subsequent edits. This can cause the tool to silently remove security settings like internal networks from pull request files while still passing validation checks and exiting normally. The vulnerability affects PyPI package compose-lint versions 0.9.0 through 0.17.0 and associated Docker images.
Exploitability
The vulnerability carries a CVSS 4.0 base score vector of 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, indicating network attack vectors with low attack complexity and no required privileges, but requiring user interaction. The EPSS score is 0.003 (percentile 0.266), and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the compose-lint package and Docker image to version 0.18.0 or later.
- On older versions, review the dry-run diff carefully before running --apply, and avoid running fix --apply on files originating from untrusted pull requests.
How to check your project
- Inspect project dependency files (such as requirements.txt, pyproject.toml, or lock files) to check if compose-lint versions 0.9.0 through 0.17.0 are in use.
- Check container definitions or CI/CD pipelines to see if composelint/compose-lint Docker images tagged between 0.9.0 and 0.17.0 are being utilized.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | compose-lint |
>= 0.9.0, < 0.18.0 | 0.18.0 | python -m pip install 'compose-lint>=0.18.0' |
CVSS 4.0 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
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | Active |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the line deletion behavior in compose-lint?
The YAML parser recognizes lone carriage returns, U+0085, U+2028, and U+2029 as line breaks, whereas the file position conversion logic only counted newline characters (\n). This discrepancy causes line shifts when these characters appear inside quoted values.
Is the GitHub Action for compose-lint affected?
No, the GitHub Action does not execute the `fix` command and is therefore not affected by this vulnerability.
How does version 0.18.0 address this security issue?
Version 0.18.0 unifies line splitting and position conversion to use a single definition of a line break, and refuses to process Compose files containing ambiguous line breaks with an exit code of 2.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-123370
- WEB https://github.com/tmatens/compose-lint/pull/547
- WEB https://github.com/tmatens/compose-lint/pull/549
- WEB https://github.com/tmatens/compose-lint/commit/c9d453a6a69c076788fe1db05cb54684a616d1de
- WEB https://github.com/tmatens/compose-lint/commit/cbbf886d91347dea9c51b584eb50088e70007d0d
- PACKAGE https://github.com/tmatens/compose-lint
- WEB https://github.com/tmatens/compose-lint/releases/tag/v0.18.0
Source records: GHSA-65v8-q222-64xx (OSV.dev) · EPSS by FIRST, 2026-11-26.