PyPI
CVE-2026-123796
compose-lint: Incomplete fix for GHSA-jf3h-8jvx-vcrg: a run stopped at the finding limit quotes a secret from a CI-generated `.env`
- Severity
- Low
- Published
- 10 Nov 2026
- Last changed
- 10 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.33.0
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-rm8w-w798-g545
- Sources
- OSV.dev and GitHub
Description
This is an incomplete fix for GHSA-jf3h-8jvx-vcrg. 0.32.0 made findings quote the ${NAME} a sibling .env filled in, instead of its value. The same release added a stop at 20,000 findings per document, and that stop is checked before the quoting step. A run that hits it reports the findings graded so far with the resolved values still in them, in text, JSON and SARIF output. That happens with or without --allow-partial-coverage.
The attack is the one GHSA-jf3h-8jvx-vcrg describes. In a CI workflow that writes secrets into the .env beside the Compose file, a pull request changes a line to image: "${DB_PASSWORD}". It also pushes the document past 20,000 findings, which a few hundred lines can do, because an aliased list is graded once for each service that uses it. The secret's value is quoted in a finding that reaches the job log, the JSON output and the SARIF uploaded to Code Scanning.
Workarounds
- Run with --no-env, which skips the sibling .env.
- Don't write secrets into the .env beside the Compose file in a job that lints untrusted pull requests.
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-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-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-123796
- GitHub Advisory Database https://github.com/advisories/GHSA-rm8w-w798-g545