PyPI
CVE-2026-125121
compose-lint: Text in a pull request can still issue CI workflow commands through compose-lint 0.31.0's output
- Severity
- Medium
- Published
- 10 Nov 2026
- Last changed
- 11 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.32.0
- Exploit chance
- 0.4% in the next 30 daysHigher than 35% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-r7j4-crjv-h467
- Sources
- OSV.dev and GitHub
Description
0.31.0 fixed GHSA-6f4g-xm8v-pgv6, where text from a Compose file became GitHub Actions workflow commands in compose-lint's output. The fix escapes the command openers in everything compose-lint prints, and the 0.31.0 changelog says the report "escapes both openers (also covering Azure Pipelines)". Five paths were left open:
- Unicode whitespace before a line-leading ::. The runner strips all Unicode whitespace from the start of a line before it looks for a command. compose-lint only accounted for spaces and tabs, so a no-break space or another Unicode space ahead of :: is not escaped. It can come from a Compose value, or from a file name: the text report's file heading and per-file summary, and the fix summary on stderr, start with the path as given, so a directory named with a leading no-break space followed by :: puts a command at the start of a line. This reaches those lines, the text report's fix guidance, the fix dry-run diff, and continuation lines of stderr diagnostics.
Workarounds
- Upgrade to 0.32.0 or later.
- On GitHub Actions, use the tmatens/compose-lint Action, or bracket the compose-lint step with ::stop-commands:: and ::::, as the Action does.
- In the Action, keep sarif-file at the workspace root, for example sarif-file: results.sarif.
- Write --format json and --format sarif output to a file rather than the log.
- End the pre-commit hook's args: with --. This closes the command-line path only; it does not stop a file name at the start of a report line, so in CI also bracket the pre-commit step with ::stop-commands:: as above.
Affected software
| Software | Affected versions |
|---|---|
compose-lintPyPI · osv:PyPI:compose-lint |
|
About compose-lint
- Weekly downloads (PyPI)
- 2,476PyPI Stats, 24 Nov 2026
Vulnerabilities in compose-lint
- In our list
- 10
- Published in the last 12 months
- 10
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-125123compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messagesLow 10 Nov 2026
- CVE-2026-125122compose-lint: Text in a pull request can issue CI workflow commands through JSON and SARIF output on stdoutLow 10 Nov 2026
- CVE-2026-123796compose-lint: Incomplete fix for GHSA-jf3h-8jvx-vcrg: a run stopped at the finding limit quotes a secret from a CI-generated `.env`Low 10 Nov 2026
- CVE-2026-123373compose-lint: A committed symlink makes compose-lint quote a file from outside the project into its outputLow 10 Nov 2026
- CVE-2026-123371compose-lint: A `.compose-lint.yml` symlinked outside the project is read, and a parse error quotes part of the targetLow 10 Nov 2026
- CVE-2026-123372compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findingsLow 10 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-125121
- GitHub Advisory Database https://github.com/advisories/GHSA-r7j4-crjv-h467