CVE-2026-123372
compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findings
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.
Fixes and workarounds
Fix
compose-lint (pip): GitHub reports patched versions 0.32.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-jf3h-8jvx-vcrgFix
tmatens/compose-lint (actions): GitHub reports patched versions 0.32.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-jf3h-8jvx-vcrgFix
compose-lint (PyPI): OSV reports a fixed version 0.32.0. Check the advisory for supported release branches.
Source: OSV GHSA-jf3h-8jvx-vcrgFix
tmatens/compose-lint (GitHub Actions): OSV reports a fixed version 0.32.0. Check the advisory for supported release branches.
Source: OSV GHSA-jf3h-8jvx-vcrgFix
tmatens/compose-lint: OSV reports a fix at commit 2d42617e4c6416f797bbfc6a057950131fa02df3.
Source: OSV GHSA-jf3h-8jvx-vcrgAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| compose-lint tmatens |
>= 0.22.0, < 0.32.0 (affected) | CNA: GitHub_M |
compose-lintcompose-lint
pip |
>= 0.22.0, <= 0.31.0 (affected, GitHub advisory range) | GitHub GHSA-jf3h-8jvx-vcrg |
tmatens/compose-linttmatens/compose-lint
actions |
>= 0.22.0, <= 0.31.0 (affected, GitHub advisory range) | GitHub GHSA-jf3h-8jvx-vcrg |
compose-lintcompose-lint
PyPI |
0.22.0 (affected, PyPI) 0.23.0 (affected, PyPI) 0.24.0 (affected, PyPI) 0.25.0 (affected, PyPI) 0.26.0 (affected, PyPI) 0.27.0 (affected, PyPI) 0.28.0 (affected, PyPI) 0.29.0 (affected, PyPI) 0.30.0 (affected, PyPI) 0.31.0 (affected, PyPI) Ecosystem version events: introduced 0.22.0; fixed 0.32.0 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-jf3h-8jvx-vcrg |
tmatens/compose-linttmatens/compose-lint
GitHub Actions |
v0.31.0 (affected, GitHub Actions) v0.30.0 (affected, GitHub Actions) v0.29.0 (affected, GitHub Actions) v0.28.0 (affected, GitHub Actions) v0.27.0 (affected, GitHub Actions) v0.26.0 (affected, GitHub Actions) v0.25.0 (affected, GitHub Actions) v0.24.0 (affected, GitHub Actions) v0.23.0 (affected, GitHub Actions) v0.22.0 (affected, GitHub Actions) Ecosystem version events: introduced 0.22.0; fixed 0.32.0 Source events (ECOSYSTEM)
Git commit history: introduced 811ef6b379dbc78d048fcedaf976205705d4a7c3; fixed 2d42617e4c6416f797bbfc6a057950131fa02df3 Source events (GIT)Commit identifiers describe source repository history. They are not release-version comparisons.
Other versions: unaffected |
OSV GHSA-jf3h-8jvx-vcrg |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 2.3 low |
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 | CNA: GitHub_M |
| 4.0 / 2.3 low |
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
Exploit evidence
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrg
exploit · ADP: CISA-ADP
References
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrgCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/tmatens/compose-lint/pull/944CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/commit/977da9724789264c2662afe47f79220e915442c2CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrgADP: CISA-ADP · exploit
- https://github.com/tmatens/compose-lint/commit/977da9724789264c2662afe47f79220e915442c2[email protected]
- https://github.com/tmatens/compose-lint/pull/944[email protected]
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrg[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-jf3h-8jvx-vcrgGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-jf3h-8jvx-vcrgOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-jf3h-8jvx-vcrgOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.