PyPI
CVE-2026-125123
compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages
- Severity
- Low
- Published
- 10 Nov 2026
- Last changed
- 10 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.32.0
- Exploit chance
- 0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-8v59-qmwv-4p6q
- 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 compose-lint's own output, but not in the argument parser's error messages. When a repository path reaches compose-lint's arguments without a -- before it, the argument parser prints it raw in its error message. That includes a carriage return, which the runner treats as a line break, so a command can also start a new line there.
A pull request can therefore create annotations, fold or hide parts of the job log, or issue other commands the runner accepts, when CI runs compose-lint over it, before anyone reviews it. The pass/fail result is not changed.
Affected setups pass repository paths to compose-lint without a -- before them: the pre-commit hook when args: is set without the documented trailing --, or the compose-lint package or Docker image called that way in a workflow.
Workarounds
- Upgrade to 0.32.0 or later.
- End the 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:: and ::::, as the Action does.
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-125122compose-lint: Text in a pull request can issue CI workflow commands through JSON and SARIF output on stdoutLow 10 Nov 2026
- CVE-2026-125121compose-lint: Text in a pull request can still issue CI workflow commands through compose-lint 0.31.0's outputMedium 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-125123
- GitHub Advisory Database https://github.com/advisories/GHSA-8v59-qmwv-4p6q