CVE-2026-125122: compose-lint: Text in a pull request can issue CI workflow commands through JSON and SARIF output on stdout
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-hr4h-4c45-v4q4
Summary
The compose-lint package fails to escape GitHub Actions workflow commands in JSON and SARIF output formats when printed to stdout. Engineering teams using compose-lint version 0.31.0 in CI environments should update immediately.
Who is affected
Deployments running compose-lint version 0.31.0 with `--format json` or `--format sarif` directed to stdout are affected. Attackers can control text within a Compose file in a pull request to issue arbitrary CI workflow commands, such as creating annotations or modifying job logs, before human review.
Exploitability
The vulnerability has a CVSS 4.0 base score vector of AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N, reflecting network accessibility with low attack complexity, low privileges, and required user interaction or specific environmental triggers. The EPSS score is 0.004 (percentile 0.321), and the vulnerability is not listed as actively exploited in the CISA KEV database.
Remediation
- Upgrade the PyPI compose-lint package and associated Docker images to version 0.32.0 or later.
- Write `--format json` and `--format sarif` output to a file instead of streaming directly to stdout.
- On GitHub Actions, use the official tmatens/compose-lint Action or bracket the execution step with stop-commands tokens.
How to check your project
- Check project dependency configurations or requirements files for `compose-lint==0.31.0`.
- Inspect CI workflows for execution of compose-lint utilizing `--format json` or `--format sarif` directed to stdout without intermediate file writing.
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
What causes the vulnerability in compose-lint?
A previous fix for workflow command injection missed the JSON and SARIF output formats when printed directly to stdout, leaving `##[` sequences unescaped inside strings.
Are text-based reports or file outputs affected?
No. Text reports do not trigger this behavior, and writing JSON or SARIF output to a file rather than the CI log is not affected.
Does this flaw alter pass/fail results in CI?
No, the pass or fail result of the CI run is not changed by this vulnerability.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-hr4h-4c45-v4q4
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125122
- 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-hr4h-4c45-v4q4 (OSV.dev) · EPSS by FIRST, 2026-11-26.