Skip to content

CVE-2026-123370 compose-lint: `fix --apply` can delete a line the user did not select, including a security setting

MediumCVSS 5.1 EPSS 0.33%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Docker

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi compose-lint(PyPI) = 0.9.0; = 0.10.0; = 0.11.0; = 0.12.0 +12 more 0.18.0 Fixed
tmatens compose-lint = >= 0.9.0, < 0.18.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi compose-lint(PyPI) >= 0.9.0, < 0.18.0 0.18.0
pypi compose-lint(PyPI) = 0.10.0 No fix listed
pypi compose-lint(PyPI) = 0.11.0 No fix listed
pypi compose-lint(PyPI) = 0.12.0 No fix listed
pypi compose-lint(PyPI) = 0.12.1 No fix listed
pypi compose-lint(PyPI) = 0.12.2 No fix listed
pypi compose-lint(PyPI) = 0.13.0 No fix listed
pypi compose-lint(PyPI) = 0.14.0 No fix listed
pypi compose-lint(PyPI) = 0.14.1 No fix listed
pypi compose-lint(PyPI) = 0.15.0 No fix listed
pypi compose-lint(PyPI) = 0.15.1 No fix listed
pypi compose-lint(PyPI) = 0.15.2 No fix listed
pypi compose-lint(PyPI) = 0.16.0 No fix listed
pypi compose-lint(PyPI) = 0.17.0 No fix listed
pypi compose-lint(PyPI) = 0.9.0 No fix listed
pypi compose-lint(PyPI) >= 0.9.0, <= 0.17.0 No fix listed
tmatens compose-lint = >= 0.9.0, < 0.18.0 No fix listed

References