All vulnerabilities

PyPI

CVE-2026-123371

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

Severity
Low
Published
10 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.32.0
Exploit chance
0.4% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure through error messages (CWE-209)Link following (CWE-59)
Also known as
GHSA-88f4-frh5-gmcr
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
compose-lintPyPI · osv:PyPI:compose-lint
  • From 0.2.0 before 0.32.0

About compose-lint

Weekly downloads (PyPI)
2,476PyPI Stats, 24 Nov 2026

References