CVE-2026-125123
compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages
Impact
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint's argument parser writes rejected repository paths to stderr without the output sanitizer when a path is passed without a preceding -- separator. A pull request can supply a path containing workflow-command syntax; a carriage return can position that command at the start of a new line recognized by the GitHub Actions runner, allowing the package, Docker image, or a pre-commit hook with misconfigured args to issue the command in the job log. The default pre-commit configuration includes -- and is not affected, the GitHub Action is not affected, and the lint pass or fail result is unchanged. This issue is fixed in version 0.32.0.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | compose-lint | = 0.31.0 | 0.32.0 |
Affected products · Tmatens
| Product | Affected versions |
|---|---|
| Compose-lint | Version = 0.31.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q
- https://github.com/tmatens/compose-lint/pull/945
- https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
- https://github.com/advisories/GHSA-8v59-qmwv-4p6q
- https://nvd.nist.gov/vuln/detail/CVE-2026-125123