Skip to content
FlawDB
Sign in

CVE-2026-123371

LOW 2.3EPSS 46%

compose-lint: A `.compose-lint.yml` symlinked outside the project is read, and a parse error quotes part of the target

Also known as GHSA-88f4-frh5-gmcr

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.2.0, <= 0.31.0)
  • Projects that depend on GitHub Actions package tmatens/compose-lint (>= 0.2.0, <= 0.31.0)

Vulnerability facts

Affected
compose-lint >= 0.2.0, <= 0.31.0; tmatens/compose-lint >= 0.2.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.66% chance of exploitation in 30 days (percentile 46, 2026-11-26)
CWE
CWE-59, CWE-209
Published
Modified

Description

### Impact compose-lint automatically reads a `.compose-lint.yml` policy file beside the Compose file. It is meant to read nothing outside the project directory, but it follows that file if it is a symlink, wherever it points. A pull request can commit `.compose-lint.yml` as a symlink to a file on the CI runner. If the target is not valid YAML, the error compose-lint reports quotes part of the line the parser failed on. That quote reaches the job log (standard error), JSON `errors[]`, and the SARIF `toolExecutionNotifications`, which the Action uploads to Code Scanning. The run exits 2. What can be read is small. The quote is cut to about 30 characters around the error position, and the attacker cannot choose which line of the target the parser fails on. For an INI-style credentials file, this was the start of the second line (`aws_access_key_id = ` followed by the first characters of the value). Targets in `KEY=value` form, and YAML files that parse, disclosed no values in testing. The pass/fail result is not affected. On a public repository, the job log is visible to the pull request's author. The Compose file loader stopped quoting source lines in parse errors in 0.25.0 (GHSA-whr6-fgpq-fpv9). The policy loader did not. Found during an internal pre-1.0 security review. **GitHub Action.** Action tags v0.18.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.3.3 through 0.31.0, the matching minor tags, and `latest` are affected. Inside the container, a symlink resolves within the container, so what can be read is the container's own files and anything mounted into it. ### Patches Fixed in 0.32.0. A `.compose-lint.yml` discovered in the working directory that resolves outside it is refused with exit 2 rather than read, and a policy parse error no longer quotes the line it failed on, matching the Compose loader. `--config` is read as given. 0.32.0 also stops following a Compose file that is a symlink to a target outside the checkout. ### Workarounds - Upgrade to 0.32.0 or later. - Run with an explicit `--config` pointing at a policy file inside the project; the automatic lookup is then skipped. - Don't run compose-lint on untrusted pull requests on a machine whose files outside the checkout hold credentials. ### Reproduction ``` project/.compose-lint.yml -> /path/outside/project/credentials (symlink) project/compose.yml services: {web: {image: nginx:1.27}} ``` `compose-lint --format sarif compose.yml` exits 2, and the notification text quotes the start of the target's second line.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI compose-lint>= 0.2.0, <= 0.31.00.32.0ghsa
GitHub Actions tmatens/compose-lint>= 0.2.0, <= 0.31.00.32.0ghsa

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-123371. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-123371.md
Affected: compose-lint >= 0.2.0, <= 0.31.0; tmatens/compose-lint >= 0.2.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

FAQ

Is CVE-2026-123371 being exploited?

There is no confirmed exploitation: CVE-2026-123371 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-123371?

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

compose-lint >= 0.2.0, <= 0.31.0; tmatens/compose-lint >= 0.2.0, <= 0.31.0.

Is there a fix for CVE-2026-123371?

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

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
CRITICAL 9.3CVE-2026-137964

ToolJet before 3.21.96-LTS Command Injection via Release Workflow Pull Request Title

GitHub Actions
LOW 2.3CVE-2026-125125

compose-lint: Workflow command injection through SARIF-directory errors triggered by pull request symlinks

GitHub Actions
EPSS 38%
LOW 2.3CVE-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.3CVE-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.3CVE-2026-123372

compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findings

GitHub Actions+1
EPSS 38%
Sponsors