compose-lint fix --apply deletes unselected lines, including security settings
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
compose-lint versions from 0.9.0 before 0.18.0 are affected. Its YAML parser treats lone carriage returns and Unicode line separators as line breaks, but fix position conversion counts only newline characters, which is an off-by-one error (CWE-193). A pull request can place one of these separators in a quoted value so that fix --apply deletes the line after the selected target, including an unselected security setting. An unauthenticated remote attacker needs user interaction to get the crafted change applied, and the dry-run diff is the only place showing the extra deletion.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.9.0 until 0.18.0, compose-lint's YAML parser recognizes lone carriage returns and Unicode line separators U+0085, U+2028, and U+2029 as line breaks while fix position conversion counts only newline characters. A pull request can place one of these separators in a quoted value so fix --apply shifts each later edit and deletes the line after the selected target, including an unselected network or other security setting. The resulting Compose file can remain valid, post-edit checks can pass, and the command can report a successful fix even though the dry-run diff was the only place showing the extra deletion. This issue is fixed in version 0.18.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tmatens | compose-lint | 0.9.0 to before 0.18.0 | 0.18.0 | Patch available | CNA |
| — | compose-lint (PyPI) | 0.9.0 to before 0.18.0 | 0.18.0 | Patch available | GHSA-65v8-q222-64xx |
- compose-lint Vendortmatens Affected 0.9.0 to before 0.18.0 Fixed in 0.18.0 Patch available CNA
- compose-lint (PyPI) Vendor— Affected 0.9.0 to before 0.18.0 Fixed in 0.18.0 Patch available GHSA-65v8-q222-64xx
Remediation
Upgrade compose-lint to version 0.18.0, which fixes the issue for both the tmatens compose-lint product and the PyPI compose-lint package. CISA has not listed this vulnerability in its Known Exploited Vulnerabilities catalog.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA compose-lint (tmatens) Fixed in 0.18.0
- Fix · GHSA-65v8-q222-64xx compose-lint (PyPI) Fixed in 0.18.0 Advisory →
Timeline
- 2026-11-09 Threatist record created from CVE-2026-123370
- 2026-11-10 Alias added: GHSA-65v8-q222-64xx
- 2026-11-10 Fix available: PyPI/[email protected] · GHSA-65v8-q222-64xx
- 2026-11-10 CVSS score added · GHSA-65v8-q222-64xx
- 2026-11-10 Weakness changed · GHSA-65v8-q222-64xx
- 2026-11-10 8 new references · GHSA-65v8-q222-64xx
- 2026-11-14 CISA SSVC decision points changed
References
Other 7
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx
- https://github.com/tmatens/compose-lint/pull/547
- https://github.com/tmatens/compose-lint/pull/549
- https://github.com/tmatens/compose-lint/commit/c9d453a6a69c076788fe1db05cb54684a616d1de
- https://github.com/tmatens/compose-lint/commit/cbbf886d91347dea9c51b584eb50088e70007d0d
- https://github.com/tmatens/compose-lint/releases/tag/v0.18.0
- https://github.com/tmatens/compose-lint
More tmatens vulnerabilities
- TI-2026-87186 Incomplete fix lets compose-lint leak .env secrets at finding limit CVSS 4.0LOW 2.3
- TI-2026-87182 Secret values from a .env file leak into compose-lint findings CVSS 4.0LOW 2.3
- TI-2026-87178 Symlink traversal in compose-lint can expose CI job environment data CVSS 4.0LOW 2.3
- TI-2026-87874 compose-lint: Unicode whitespace lets PR text issue CI workflow commands CVSS 4.0MEDIUM 5.3
- TI-2026-87179 Workflow command injection in compose-lint Action output CVSS 4.0MEDIUM 5.3
- TI-2026-87879 Output from compose-lint can issue Azure Pipelines logging commands CVSS 4.0LOW 2.3
Sources
- CVE-2026-123370 · CVE Program
- CVE-2026-123370 · NVD
- FIRST EPSS
- GHSA-65v8-q222-64xx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences