Secret values from a .env file leak into compose-lint findings
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
compose-lint from 0.22.0 before 0.32.0 is affected on PyPI and as the GitHub Action tmatens/compose-lint. Its CL-0004 and CL-0019 findings quote values substituted from a sibling .env file, exposing sensitive information (CWE-532). In a workflow that writes secrets to that file and lints untrusted pull-request content, an attacker can make a secret's full value appear in logs, JSON, SARIF and Code Scanning alerts. Exploitation needs a secret-bearing workflow such as pull_request_target.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.22.0 until 0.32.0, compose-lint substitutes values from a sibling .env file into image fields and quotes the resolved value in CL-0004 and CL-0019 finding messages and fix text. In a workflow that writes secrets into that file and then lints untrusted pull-request content, an attacker can reference a secret variable so its whole value reaches the job log, JSON output, SARIF artifacts, and Code Scanning alerts. Fork pull requests normally lack secrets, so exploitation requires a secret-bearing workflow such as pull_request_target, same-repository branches, or a retained .env on a self-hosted runner, and the pass or fail result is unchanged. This issue is fixed in version 0.32.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tmatens | compose-lint | 0.22.0 to before 0.32.0 | 0.32.0 | Patch available | CNA |
| — | compose-lint (PyPI) | 0.22.0 to before 0.32.0 | 0.32.0 | Patch available | GHSA-jf3h-8jvx-vcrg |
| — | tmatens/compose-lint (GitHub Actions) | 0.22.0 to before 0.32.0 | 0.32.0 | Patch available | GHSA-jf3h-8jvx-vcrg |
- compose-lint Vendortmatens Affected 0.22.0 to before 0.32.0 Fixed in 0.32.0 Patch available CNA
- compose-lint (PyPI) Vendor— Affected 0.22.0 to before 0.32.0 Fixed in 0.32.0 Patch available GHSA-jf3h-8jvx-vcrg
- tmatens/compose-lint (GitHub Actions) Vendor— Affected 0.22.0 to before 0.32.0 Fixed in 0.32.0 Patch available GHSA-jf3h-8jvx-vcrg
Remediation
Upgrade compose-lint to version 0.32.0, the fixed version on PyPI and for the tmatens/compose-lint GitHub Action.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA compose-lint (tmatens) Fixed in 0.32.0
- Fix · GHSA-jf3h-8jvx-vcrg compose-lint (PyPI) Fixed in 0.32.0 Advisory →
- Fix · GHSA-jf3h-8jvx-vcrg tmatens/compose-lint (GitHub Actions) Fixed in 0.32.0 Advisory →
Timeline
- 2026-11-09 Threatist record created from CVE-2026-123372
- 2026-11-10 Alias added: GHSA-jf3h-8jvx-vcrg
- 2026-11-10 Fix available: GitHub Actions/tmatens/[email protected], PyPI/[email protected] · GHSA-jf3h-8jvx-vcrg
- 2026-11-10 CVSS score added · GHSA-jf3h-8jvx-vcrg
- 2026-11-10 Weakness changed · GHSA-jf3h-8jvx-vcrg
- 2026-11-10 6 new references · GHSA-jf3h-8jvx-vcrg
- 2026-11-13 CISA SSVC decision points changed
References
Other 5
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrg
- https://github.com/tmatens/compose-lint/pull/944
- https://github.com/tmatens/compose-lint/commit/977da9724789264c2662afe47f79220e915442c2
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
- https://github.com/tmatens/compose-lint
More tmatens vulnerabilities
- TI-2026-87180 compose-lint fix --apply deletes unselected lines, including security settings CVSS 4.0MEDIUM 5.1
- TI-2026-87186 Incomplete fix lets compose-lint leak .env secrets at finding limit CVSS 4.0LOW 2.3
- TI-2026-87178 Symlink traversal in compose-lint can expose CI job environment data CVSS 4.0LOW 2.3
- TI-2026-87874 compose-lint: Unicode whitespace lets PR text issue CI workflow commands CVSS 4.0MEDIUM 5.3
- TI-2026-87179 Workflow command injection in compose-lint Action output CVSS 4.0MEDIUM 5.3
- TI-2026-87879 Output from compose-lint can issue Azure Pipelines logging commands CVSS 4.0LOW 2.3
Sources
- CVE-2026-123372 · CVE Program
- CVE-2026-123372 · NVD
- FIRST EPSS
- GHSA-jf3h-8jvx-vcrg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences