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`
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-rm8w-w798-g545
Summary
A vulnerability in compose-lint allows secrets from a CI-generated .env file to be leaked in output findings if the document hits the 20,000-finding limit. Engineering and security teams using version 0.32.0 must upgrade to 0.33.0 or apply workarounds.
Who is affected
When a Compose file exceeds 20,000 findings, the finding limit check occurs before the quoting step, leaving resolved secret values exposed in text, JSON, and SARIF outputs. This affects deployments where workflows write secrets into a sibling .env file and run on untrusted pull requests, such as via pull_request_target. The leaked secrets can then appear in job logs, uploaded JSON/SARIF artifacts, or Code Scanning alerts.
Exploitability
The CVSS 4.0 base score is not computed, though the vector indicates low severity with network attack vector and low attack complexity. The EPSS score is 0.003 (percentile 0.235), and CISA KEV status is no, indicating low current exploitation prevalence.
Remediation
- Upgrade the compose-lint PyPI package, GitHub Action, pre-commit hook, or Docker image to version 0.33.0.
- Run with the --no-env flag to skip the sibling .env file as a workaround.
- Avoid writing secrets into the .env file beside the Compose file in jobs that lint untrusted pull requests.
How to check your project
- Check if the project uses compose-lint version 0.32.0 via PyPI, GitHub Actions, pre-commit hooks, or Docker images (composelint/compose-lint:0.32.0, :0.32, or latest).
- Inspect CI workflows for the presence of sibling .env generation containing secrets combined with compose-lint execution on untrusted pull requests.
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 |
|---|---|---|---|---|
| GitHub Actions | tmatens/compose-lint |
>= 0.32.0, < 0.33.0 | 0.33.0 | uses: tmatens/[email protected] |
| PyPI | compose-lint |
>= 0.32.0, < 0.33.0 | 0.33.0 | python -m pip install 'compose-lint>=0.33.0' |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | Passive |
| Confidentiality (vulnerable system) | Low |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the secret to be leaked?
When a document hits the 20,000 findings stop limit, the stop check occurs before the quoting step, causing findings to be reported with resolved .env values rather than quoted variable names.
Are pull requests from forks normally exposed to this vulnerability?
No, pull requests from forks normally run without secrets, so the common setup is not exposed unless using specialized workflows like pull_request_target.
Is there a fixed version available for compose-lint?
Yes, version 0.33.0 fixes this incomplete fix present in version 0.32.0.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-rm8w-w798-g545
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-123796
- WEB https://github.com/tmatens/compose-lint/pull/978
- WEB https://github.com/tmatens/compose-lint/commit/31ec460399e06e98aa0d1cc578368a1960a8a0b3
- PACKAGE https://github.com/tmatens/compose-lint
- WEB https://github.com/tmatens/compose-lint/releases/tag/v0.33.0
Source records: GHSA-rm8w-w798-g545 (OSV.dev) · EPSS by FIRST, 2026-11-22.