CVE-2026-123372: compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findings
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-jf3h-8jvx-vcrg
Summary
A vulnerability in compose-lint allows an untrusted pull request to leak secrets from a CI-generated .env file into findings, logs, and SARIF artifacts. Maintainers and security engineers using compose-lint versions 0.22.0 through 0.31.0 should act.
Who is affected
Affected deployments include those using compose-lint or the composelint/compose-lint Docker image between versions 0.22.0 and 0.31.0 where secrets are written into a sibling .env file. The issue is exposed under specific conditions such as workflows using pull_request_target, pull requests from branches in the same repository, or self-hosted runners that retain a populated .env file. When triggered, the resolved secret value is quoted directly into rule findings, JSON output, and uploaded SARIF artifacts.
Exploitability
The vulnerability requires network access and low privileges, with a passive attack requirement and user interaction needed. The confidentiality impact is low, while integrity and availability are unaffected, resulting in a low severity rating with an EPSS score of 0.004 and no CISA KEV listing.
Remediation
- Upgrade compose-lint to version 0.32.0 or later.
- Run compose-lint with the --no-env flag to skip the sibling .env file.
- Avoid writing secrets into the .env file beside the Compose file in jobs that lint untrusted pull requests.
How to check your project
- Check project configuration files and CI workflows for compose-lint action tags or Docker image versions between 0.22.0 and 0.31.0.
- Inspect CI logs, JSON outputs, and SARIF reports for leaked environment variables or secret values.
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.22.0, < 0.32.0 | 0.32.0 | uses: tmatens/[email protected] |
| PyPI | compose-lint |
>= 0.22.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: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
Which versions of compose-lint are affected?
Versions 0.22.0 through 0.31.0 for PyPI, GitHub Actions, and the Docker image are affected.
How do secrets get exposed by compose-lint?
compose-lint resolves `${VAR}` references from a sibling .env file into image values and subsequently quotes the resolved value in findings and fix text.
Does standard pull request testing from forks expose this vulnerability?
No, pull requests from forks normally run without secrets, meaning the common setup is not typically exposed.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-123372
- WEB https://github.com/tmatens/compose-lint/pull/944
- WEB https://github.com/tmatens/compose-lint/commit/977da9724789264c2662afe47f79220e915442c2
- PACKAGE https://github.com/tmatens/compose-lint
- WEB https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
Source records: GHSA-jf3h-8jvx-vcrg (OSV.dev) · EPSS by FIRST, 2026-11-22.