Read the docs

compose-lint fix --apply deletes unselected lines, including security settings

Priority MEDIUM 62CWE-193Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0033 26th percentileScored 2026-11-16
Fix Fixed compose-lint (tmatens): 0.18.0compose-lint (PyPI): 0.18.0

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

VendorProductAffected versionsFixed inStatusSource
tmatenscompose-lint0.9.0 to before 0.18.00.18.0Patch availableCNA
—compose-lint (PyPI)0.9.0 to before 0.18.00.18.0Patch availableGHSA-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

  1. 2026-11-09 Threatist record created from CVE-2026-123370
  2. 2026-11-10 Alias added: GHSA-65v8-q222-64xx
  3. 2026-11-10 Fix available: PyPI/[email protected] · GHSA-65v8-q222-64xx
  4. 2026-11-10 CVSS score added · GHSA-65v8-q222-64xx
  5. 2026-11-10 Weakness changed · GHSA-65v8-q222-64xx
  6. 2026-11-10 8 new references · GHSA-65v8-q222-64xx
  7. 2026-11-14 CISA SSVC decision points changed

References

  • 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
See all 11 →

Sources