CVE-2026-123370
compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
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.
Fixes and workarounds
Fix
compose-lint (pip): GitHub reports patched versions 0.18.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-65v8-q222-64xxFix
compose-lint (PyPI): OSV reports a fixed version 0.18.0. Check the advisory for supported release branches.
Source: OSV GHSA-65v8-q222-64xxAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| compose-lint tmatens |
>= 0.9.0, < 0.18.0 (affected) | CNA: GitHub_M |
compose-lintcompose-lint
pip |
>= 0.9.0, <= 0.17.0 (affected, GitHub advisory range) | GitHub GHSA-65v8-q222-64xx |
compose-lintcompose-lint
PyPI |
0.10.0 (affected, PyPI) 0.11.0 (affected, PyPI) 0.12.0 (affected, PyPI) 0.12.1 (affected, PyPI) 0.12.2 (affected, PyPI) 0.13.0 (affected, PyPI) 0.14.0 (affected, PyPI) 0.14.1 (affected, PyPI) 0.15.0 (affected, PyPI) 0.15.1 (affected, PyPI) 0.15.2 (affected, PyPI) 0.16.0 (affected, PyPI) 0.17.0 (affected, PyPI) 0.9.0 (affected, PyPI) Ecosystem version events: introduced 0.9.0; fixed 0.18.0 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-65v8-q222-64xx |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 5.1 medium |
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 | CNA: GitHub_M |
| 4.0 / 5.1 medium |
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 | NVD: [email protected] |
Exploit evidence
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx
exploit · ADP: CISA-ADP
References
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xxCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/tmatens/compose-lint/pull/547CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/pull/549CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/commit/c9d453a6a69c076788fe1db05cb54684a616d1deCNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/commit/cbbf886d91347dea9c51b584eb50088e70007d0dCNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/releases/tag/v0.18.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xxADP: CISA-ADP · exploit
- https://github.com/tmatens/compose-lint/commit/c9d453a6a69c076788fe1db05cb54684a616d1de[email protected]
- https://github.com/tmatens/compose-lint/commit/cbbf886d91347dea9c51b584eb50088e70007d0d[email protected]
- https://github.com/tmatens/compose-lint/pull/547[email protected]
- https://github.com/tmatens/compose-lint/pull/549[email protected]
- https://github.com/tmatens/compose-lint/releases/tag/v0.18.0[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xxGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-65v8-q222-64xxOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-65v8-q222-64xxOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.