# 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\`

- **Severity:** LOW 2.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-28)
- **CWE:** CWE-200, CWE-532
- **Aliases:** GHSA-rm8w-w798-g545
- **Published:** 2026-11-10T15:57:22.000Z
- **Modified:** 2026-11-10T15:57:23.000Z

## Who should check

- Projects that depend on PyPI package compose-lint (= 0.32.0)
- Projects that depend on GitHub Actions package tmatens/compose-lint (= 0.32.0)

## Description

\#\#\# Impact

This is an incomplete fix for GHSA-jf3h-8jvx-vcrg. 0.32.0 made findings quote the \`${NAME}\` a sibling \`.env\` filled in, instead of its value. The same release added a stop at 20,000 findings per document, and that stop is checked before the quoting step. A run that hits it reports the findings graded so far with the resolved values still in them, in text, JSON and SARIF output. That happens with or without \`--allow-partial-coverage\`.

The attack is the one GHSA-jf3h-8jvx-vcrg describes. In a CI workflow that writes secrets into the \`.env\` beside the Compose file, a pull request changes a line to \`image: "${DB\_PASSWORD}"\`. It also pushes the document past 20,000 findings, which a few hundred lines can do, because an aliased list is graded once for each service that uses it. The secret's value is quoted in a finding that reaches the job log, the 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 run exits 2, or 0 with \`--allow-partial-coverage\`, after the output has been written.

The preconditions are the same as for GHSA-jf3h-8jvx-vcrg. The workflow writes secrets into the \`.env\` beside the Compose file \*and\* runs on pull requests from authors who should not see them, such as a \`pull\_request\_target\` workflow that lints the pull request's files. Pull requests from forks normally run without secrets, so the common setup is not exposed. The inflated document is visible in the pull request, but the workflow runs before anyone reviews it.

Found during an internal pre-1.0 security review.

\*\*Python package.\*\* \`compose-lint\` 0.32.0. Earlier releases have no finding limit, and their quoting gap is GHSA-jf3h-8jvx-vcrg itself.

\*\*GitHub Action.\*\* Action tag v0.32.0 is affected. Tags before v0.22.0 install the newest release unless \`version:\` is set, so they currently install 0.32.0.

\*\*pre-commit hook.\*\* \`rev: v0.32.0\`.

\*\*Docker image.\*\* \`composelint/compose-lint:0.32.0\`, \`:0.32\` and \`latest\` are affected when the \`.env\` is mounted with the project.

\#\#\# Patches

No fixed release yet.

\#\#\# Workarounds

- 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   x-p: &p \[ ...200 port mappings... \]
                      services: one service with image: "${DB\_PASSWORD}" and ports: \*p,
                                plus about 100 more services with ports: \*p
\`\`\`

\`compose-lint --format sarif compose.yml\` exits 2 with "grading stopped at 20000 findings", and the reported findings contain \`example-secret\`. The same file with fewer services stays under the limit and quotes \`${DB\_PASSWORD}\`. Checked against the 0.32.0 wheel from PyPI, using a synthetic value.

## Affected and fixed versions

- PyPI `compose-lint`: affected = 0.32.0; fixed 0.33.0 (ghsa)
- GitHub Actions `tmatens/compose-lint`: affected = 0.32.0; fixed 0.33.0 (ghsa)

## Technologies

GitHub Actions, PyPI packages

## Mitigation

- Upgrade compose-lint to 0.33.0 or later.
- Upgrade tmatens/compose-lint to 0.33.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-123796. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-123796.md
Affected: compose-lint = 0.32.0; tmatens/compose-lint = 0.32.0
Fixed in: 0.33.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.
```

## FAQ

### Is CVE-2026-123796 being exploited?

There is no confirmed exploitation: CVE-2026-123796 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-28).

### How serious is CVE-2026-123796?

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-123796?

compose-lint = 0.32.0; tmatens/compose-lint = 0.32.0.

### Is there a fix for CVE-2026-123796?

Yes. Fixed in 0.33.0. Upgrade compose-lint to 0.33.0 or later. Upgrade tmatens/compose-lint to 0.33.0 or later.

### How do I check if I'm affected by CVE-2026-123796?

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.

## References

- vendor: <https://github.com/tmatens/compose-lint/security/advisories/GHSA-rm8w-w798-g545>
- patch: <https://github.com/tmatens/compose-lint/pull/978>
- patch: <https://github.com/tmatens/compose-lint/commit/31ec460399e06e98aa0d1cc578368a1960a8a0b3>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-123796>
- other: <https://github.com/tmatens/compose-lint/releases/tag/v0.33.0>
- other: <https://github.com/advisories/GHSA-rm8w-w798-g545>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-rm8w-w798-g545> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-123796> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-123796>
