CVE-2026-125123: compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-8v59-qmwv-4p6q
Summary
A command injection vulnerability exists in compose-lint where argument parser error messages fail to escape command openers, allowing injected CI workflow commands from file paths in pull requests. Maintainers using compose-lint version 0.31.0 should upgrade immediately.
Who is affected
Affected setups pass repository paths to compose-lint without a preceding '--' separator, such as misconfigured pre-commit hooks or direct CLI/Docker calls. When triggered, a pull request can create annotations, fold or hide job logs, or issue other runner commands before review, though the pass/fail result remains unchanged.
Exploitability
The vulnerability requires network access, low attack complexity, and requires user interaction with a low attack prerequisite. The CVSS 4.0 base score is not computed, EPSS is 0.004 (percentile 0.345), and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade PyPI package compose-lint to version 0.32.0 or later.
- Update Docker image composelint/compose-lint to version 0.32.0 or later.
- End pre-commit hook's args with '--', and put '--' before file paths when calling compose-lint directly.
- On GitHub Actions, use the tmatens/compose-lint Action or bracket the compose-lint step with stop-commands.
How to check your project
- Check dependency declarations for PyPI package compose-lint version 0.31.0.
- Inspect Docker images for composelint/compose-lint tag 0.31.0 or minor tags pointing to it.
- Review pre-commit configurations and workflow files to see if compose-lint is called with file paths missing a preceding '--'.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | compose-lint |
>= 0.31.0, < 0.32.0 | 0.32.0 | python -m pip install 'compose-lint>=0.32.0' |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | Passive |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Which versions of compose-lint are affected?
Only version 0.31.0 is affected by this specific parsing error message flaw.
Does this vulnerability allow attackers to change pass/fail results of CI runs?
No, the pass/fail result of the CI run is not changed by this vulnerability.
Is the default pre-commit hook configuration vulnerable?
No, the pre-commit hook's default configuration passes '--' and is not affected.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125123
- WEB https://github.com/tmatens/compose-lint/pull/945
- WEB https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688
- PACKAGE https://github.com/tmatens/compose-lint
- WEB https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
Source records: GHSA-8v59-qmwv-4p6q (OSV.dev) · EPSS by FIRST, 2026-11-26.