CVE-2026-123370 compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/tmatens/compose-lint/pull/547 patch
- https://github.com/tmatens/compose-lint/pull/549 patch
- https://github.com/tmatens/compose-lint/commit/c9d453a6a69c076788fe1db05cb54684a616d1de patch
- https://github.com/tmatens/compose-lint/commit/cbbf886d91347dea9c51b584eb50088e70007d0d patch
- github.com product
- https://github.com/tmatens/compose-lint/releases/tag/v0.18.0
- github.com
- ENISA EUVD EUVD-2026-120127 third-party-advisory