CVE-2026-123372
compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findings
Also known as GHSA-jf3h-8jvx-vcrg
Mitigation
- Upgrade compose-lint to 0.32.0 or later.
- Upgrade tmatens/compose-lint to 0.32.0 or later.
Who should check
- Projects that depend on PyPI package compose-lint (>= 0.22.0, <= 0.31.0)
- Projects that depend on GitHub Actions package tmatens/compose-lint (>= 0.22.0, <= 0.31.0)
Vulnerability facts
- Affected
- compose-lint >= 0.22.0, <= 0.31.0; tmatens/compose-lint >= 0.22.0, <= 0.31.0
- Fixed in
- 0.32.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.3 (v4.0, GitHub)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-200, CWE-532
- Modified
Description
### Impact Since 0.22.0, compose-lint fills in `${VAR}` references from the `.env` beside the Compose file, as Compose does. The documentation says values under `environment:` are never resolved from a `.env`, "that is where secrets live". But `image:` values are resolved, and CL-0004 and CL-0019 quote the resolved image in their message and fix text. Some CI workflows write secrets into that `.env` before linting or building. In such a workflow, a pull request that changes one line to `image: "${DB_PASSWORD}"`, or `image: "nginx:${DB_PASSWORD}"`, gets the secret's value quoted in a finding. The finding reaches the job log, JSON output, and the SARIF uploaded to Code Scanning. GitHub masks registered secrets in the job log, but not in uploaded JSON or SARIF artifacts or in Code Scanning alert text. The pass/fail result is not affected. This needs a workflow that writes secrets into the `.env` beside the Compose file *and* runs on pull requests from authors who should not see them. Pull requests from forks normally run without secrets, so the common setup is not exposed, which is why this is scored as low confidentiality impact. Where the conditions hold, such as a `pull_request_target` workflow, pull requests from branches in the same repository, or a self-hosted runner that keeps a populated `.env` in the checkout, the whole value is disclosed. Found during an internal pre-1.0 security review. **GitHub Action.** Action tags v0.22.0 through v0.31.0 install their own compose-lint version and are affected. Earlier tags install the newest release unless `version:` is set, and so currently install an affected one. **Docker image.** `composelint/compose-lint` tags 0.22.0 through 0.31.0, the matching minor tags, and `latest` are affected when the `.env` is mounted with the project. ### Patches Fixed in 0.32.0. Rules still grade the value the sibling `.env` substituted, but findings, fix guidance and notes quote the `${NAME}` reference in its place, in text, JSON and SARIF. A value shorter than 8 characters is shown as written, because short values are also words the guidance itself uses; `docs/what-a-run-reads.md` states this limit. ### Workarounds - Upgrade to 0.32.0 or later. - 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. ### Reproduction ``` project/.env DB_PASSWORD=example-secret (written by CI, not committed) project/compose.yml services: {web: {image: "${DB_PASSWORD}"}} ``` `compose-lint --format sarif compose.yml` reports CL-0004 with the message `Image 'example-secret' has no tag, ...`.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI compose-lint | >= 0.22.0, <= 0.31.0 | 0.32.0 | ghsa |
| GitHub Actions tmatens/compose-lint | >= 0.22.0, <= 0.31.0 | 0.32.0 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-123372. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-123372.md Affected: compose-lint >= 0.22.0, <= 0.31.0; tmatens/compose-lint >= 0.22.0, <= 0.31.0 Fixed in: 0.32.0 Steps: 1. Search this machine and project for compose-lint (PyPI), tmatens/compose-lint (GitHub Actions): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Patches
FAQ
Is CVE-2026-123372 being exploited?
There is no confirmed exploitation: CVE-2026-123372 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-123372?
Low: CVSS 2.3 (v4.0, scored by GitHub). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-123372?
compose-lint >= 0.22.0, <= 0.31.0; tmatens/compose-lint >= 0.22.0, <= 0.31.0.
Is there a fix for CVE-2026-123372?
Yes. Fixed in 0.32.0. Upgrade compose-lint to 0.32.0 or later. Upgrade tmatens/compose-lint to 0.32.0 or later.
How do I check if I'm affected by CVE-2026-123372?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More GitHub Actions vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| CRITICAL 9.3 | CVE-2026-137964 ToolJet before 3.21.96-LTS Command Injection via Release Workflow Pull Request Title | GitHub Actions | ||
| LOW 2.3 | CVE-2026-125125 compose-lint: Workflow command injection through SARIF-directory errors triggered by pull request symlinks | GitHub Actions | EPSS 38% | |
| LOW 2.3 | 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` | GitHub Actions+1 | EPSS 38% | |
| LOW 2.3 | CVE-2026-123373 compose-lint: A committed symlink makes compose-lint quote a file from outside the project into its output | GitHub Actions+1 | EPSS 39% | |
| LOW 2.3 | CVE-2026-123371 compose-lint: A `.compose-lint.yml` symlinked outside the project is read, and a parse error quotes part of the target | GitHub Actions+1 | EPSS 46% |