All vulnerabilities

PyPI

CVE-2026-125122

compose-lint: Text in a pull request can issue CI workflow commands through JSON and SARIF output on stdout

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 31% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-117CWE-150
Also known as
GHSA-hr4h-4c45-v4q4
Sources
OSV.dev and GitHub

Description

0.31.0 fixed GHSA-6f4g-xm8v-pgv6, where text from a Compose file became GitHub Actions workflow commands in compose-lint's output. --format json and --format sarif output never passed through that fix, so ##[ inside a service name or other value reaches the log intact when the output is printed to stdout rather than written to a file. The runner acts on ##[ in the middle of a line, so the JSON layout does not prevent it.

A pull request can therefore create annotations, fold or hide parts of the job log, or issue other commands the runner accepts, when CI runs compose-lint over it, before anyone reviews it. The pass/fail result is not changed.

Affected setups print JSON or SARIF output to a CI log from the compose-lint package, the pre-commit hook or the Docker image. Writing that output to a file, which SARIF upload requires, is not affected. The GitHub Action turns command processing off around each compose-lint run, so it is not affected.

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

Workarounds

  • Upgrade to 0.32.0 or later.
  • Write --format json and --format sarif output to a file rather than the log.
  • On GitHub Actions, use the tmatens/compose-lint Action, or bracket the compose-lint step with ::stop-commands:: and ::::, as the Action does.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

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

About compose-lint

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

References