LOW · CVSS 4.0 EPSS 0.5% · 38th percentile CWE-117CWE-150

CVE-2026-125123: compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages

Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-8v59-qmwv-4p6q

Summary

A command injection vulnerability exists in compose-lint where argument parser error messages fail to escape command openers, allowing injected CI workflow commands from file paths in pull requests. Maintainers using compose-lint version 0.31.0 should upgrade immediately.

Who is affected

Affected setups pass repository paths to compose-lint without a preceding '--' separator, such as misconfigured pre-commit hooks or direct CLI/Docker calls. When triggered, a pull request can create annotations, fold or hide job logs, or issue other runner commands before review, though the pass/fail result remains unchanged.

Exploitability

The vulnerability requires network access, low attack complexity, and requires user interaction with a low attack prerequisite. The CVSS 4.0 base score is not computed, EPSS is 0.004 (percentile 0.345), and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI compose-lint >= 0.31.0, < 0.32.0 0.32.0 python -m pip install 'compose-lint>=0.32.0'

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionPassive
Confidentiality (vulnerable system)None
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)Low
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Which versions of compose-lint are affected?

Only version 0.31.0 is affected by this specific parsing error message flaw.

Does this vulnerability allow attackers to change pass/fail results of CI runs?

No, the pass/fail result of the CI run is not changed by this vulnerability.

Is the default pre-commit hook configuration vulnerable?

No, the pre-commit hook's default configuration passes '--' and is not affected.

Original advisory description
### Impact 0.31.0 fixed GHSA-6f4g-xm8v-pgv6, where text from a Compose file became GitHub Actions workflow commands in compose-lint's output. The fix escapes the command openers in compose-lint's own output, but not in the argument parser's error messages. When a repository path reaches compose-lint's arguments without a `--` before it, the argument parser prints it raw in its error message. That includes a carriage return, which the runner treats as a line break, so a command can also start a new line there. 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 pass repository paths to compose-lint without a `--` before them: the pre-commit hook when `args:` is set without the documented trailing `--`, or the `compose-lint` package or Docker image called that way in a workflow. The pre-commit hook's default configuration passes `--` and is not affected. The GitHub Action turns command processing off around each compose-lint run, so it is not affected. Found during an internal pre-1.0 security review. It was first published as part of GHSA-r7j4-crjv-h467, together with four other gaps in the same fix. Each gap now has its own advisory. **Docker image.** `composelint/compose-lint` tag 0.31.0 and the matching minor tag are affected, as was `latest` while it pointed to 0.31.0. Releases before 0.31.0 are covered by GHSA-6f4g-xm8v-pgv6. ### Patches Fixed in 0.32.0. The argument parser's messages go through the same sanitizer as the rest of compose-lint's output. ### Workarounds - Upgrade to 0.32.0 or later. - End the pre-commit hook's `args:` with `--`, and put `--` before file paths when calling compose-lint directly. - On GitHub Actions, use the `tmatens/compose-lint` Action, or bracket the compose-lint step with `::stop-commands::<random token>` and `::<token>::`, as the Action does. ### Reproduction On compose-lint 0.31.0 on a GitHub-hosted runner (runner 2.337.0), `compose-lint '--##[warning]X/compose.yml'` with no `--` creates an annotation. The same path after `--` creates none. The `composelint/compose-lint:0.31.0` image produces byte-identical output to the package.

References

Source records: GHSA-8v59-qmwv-4p6q (OSV.dev) · EPSS by FIRST, 2026-11-26.