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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-09T17:34:24.026Z
- Modified: 2026-11-14T02:16:47.207Z
- Also known as: GHSA-65v8-q222-64xx
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tmatens compose-lint: >= 0.9.0, < 0.18.0
- compose-lint (PyPI): from 0.9.0 before 0.18.0

## Every score

- GitHub_M: CVSS: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`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/tmatens/compose-lint/security/advisories/GHSA-65v8-q222-64xx> (exploit, 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> (web)
- <https://github.com/tmatens/compose-lint/releases/tag/v0.18.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-123370> (advisory)
- <https://github.com/tmatens/compose-lint> (package)

## Sources

- CVE List: [CVE-2026-123370](https://www.cve.org/CVERecord?id=CVE-2026-123370), CVE Terms of Use, modified 2026-11-14
- GitHub Advisory Database: [GHSA-65v8-q222-64xx](https://github.com/advisories/GHSA-65v8-q222-64xx), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-123370](https://nvd.nist.gov/vuln/detail/CVE-2026-123370), Public domain, modified 2026-11-14

---

Page: https://cve.day/CVE-2026-123370 · Whole record: https://cve.day/CVE-2026-123370.json · Rebuilt by cve.day 2026-11-25T22:59:49.607Z
