Read the docs

compose-lint: Unicode whitespace lets PR text issue CI workflow commands

Priority LOW 30CWE-117Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
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 0.31.0 escapes GitHub Actions workflow-command openers only after ASCII spaces and tabs, but the runner strips all leading Unicode whitespace. Untrusted Compose values or repository paths that begin with Unicode whitespace followed by :: can therefore reach the text report, fix guidance, fix dry-run diff, and stderr diagnostics as workflow commands when the package, pre-commit hook, or Docker image runs directly in CI (CWE-117, CWE-150). An attacker who can influence pull request text can issue workflow commands, but the flaw does not change the lint pass or fail result. The GitHub Action is not affected because it disables command processing.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint escapes GitHub Actions workflow-command openers only after ASCII spaces and tabs, while the runner strips all leading Unicode whitespace before interpreting a line. Untrusted Compose values or repository paths beginning with Unicode whitespace followed by :: can therefore reach the text report, fix guidance, the fix dry-run diff, and stderr diagnostics as workflow commands when the package, pre-commit hook, or Docker image runs directly in CI. The GitHub Action is not affected because it disables command processing, and the flaw does not change the lint pass or fail result. This issue is fixed in version 0.32.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00412 35th percentileScored 2026-11-16
Fix Fixed compose-lint (tmatens): 0.32.0compose-lint (PyPI): 0.32.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
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.31.0 to before 0.32.00.32.0Patch availableCNA
—compose-lint (PyPI)0.31.0 to before 0.32.00.32.0Patch availableGHSA-r7j4-crjv-h467
  • compose-lint Vendortmatens Affected 0.31.0 to before 0.32.0 Fixed in 0.32.0 Patch available CNA
  • compose-lint (PyPI) Vendor— Affected 0.31.0 to before 0.32.0 Fixed in 0.32.0 Patch available GHSA-r7j4-crjv-h467

Remediation

Upgrade tmatens compose-lint and the PyPI compose-lint package to version 0.32.0. The sources list no fixed version for the Docker image or pre-commit hook.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA compose-lint (tmatens) Fixed in 0.32.0
  • Fix · GHSA-r7j4-crjv-h467 compose-lint (PyPI) Fixed in 0.32.0 Advisory →

Timeline

  1. 2026-11-10 Threatist record created from CVE-2026-125121
  2. 2026-11-10 Affected versions changed · CNA
  3. 2026-11-10 1 new reference · CNA
  4. 2026-11-10 Alias added: GHSA-r7j4-crjv-h467
  5. 2026-11-10 Fix available: PyPI/[email protected] · GHSA-r7j4-crjv-h467
  6. 2026-11-10 CVSS score added · GHSA-r7j4-crjv-h467
  7. 2026-11-10 Weakness changed · GHSA-r7j4-crjv-h467
  8. 2026-11-10 5 new references · GHSA-r7j4-crjv-h467
  9. 2026-11-12 CISA SSVC decision points changed

References

  • TI-2026-87180 compose-lint fix --apply deletes unselected lines, including security settings CVSS 4.0MEDIUM 5.1
  • 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-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