compose-lint: Unicode whitespace lets PR text issue CI workflow commands
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tmatens | compose-lint | 0.31.0 to before 0.32.0 | 0.32.0 | Patch available | CNA |
| — | compose-lint (PyPI) | 0.31.0 to before 0.32.0 | 0.32.0 | Patch available | GHSA-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
- 2026-11-10 Threatist record created from CVE-2026-125121
- 2026-11-10 Affected versions changed · CNA
- 2026-11-10 1 new reference · CNA
- 2026-11-10 Alias added: GHSA-r7j4-crjv-h467
- 2026-11-10 Fix available: PyPI/[email protected] · GHSA-r7j4-crjv-h467
- 2026-11-10 CVSS score added · GHSA-r7j4-crjv-h467
- 2026-11-10 Weakness changed · GHSA-r7j4-crjv-h467
- 2026-11-10 5 new references · GHSA-r7j4-crjv-h467
- 2026-11-12 CISA SSVC decision points changed
References
Other 6
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-r7j4-crjv-h467
- https://github.com/tmatens/compose-lint/pull/945
- https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688
- https://github.com/advisories/GHSA-6f4g-xm8v-pgv6
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
- https://github.com/tmatens/compose-lint
More tmatens vulnerabilities
- 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
Sources
- CVE-2026-125121 · CVE Program
- CVE-2026-125121 · NVD
- FIRST EPSS
- GHSA-r7j4-crjv-h467 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences