{"id":"CVE-2026-125123","aliases":["GHSA-8v59-qmwv-4p6q"],"title":"compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"LOW","description":"### Impact\n\n0.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.\n\nA 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.\n\nAffected 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.\n\nFound 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.\n\n**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.\n\nReleases before 0.31.0 are covered by GHSA-6f4g-xm8v-pgv6.\n\n### Patches\n\nFixed in 0.32.0. The argument parser's messages go through the same sanitizer as the rest of compose-lint's output.\n\n### Workarounds\n\n- Upgrade to 0.32.0 or later.\n- End the pre-commit hook's `args:` with `--`, and put `--` before file paths when calling compose-lint directly.\n- 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.\n\n### Reproduction\n\nOn 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.","severity":"low","score":2.3,"published":"2026-11-10T16:52:31.891Z","modified":"2026-11-10T22:15:03.405Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"compose-lint","sources":[{"name":"OSV · GHSA-8v59-qmwv-4p6q","url":"https://osv.dev/vulnerability/GHSA-8v59-qmwv-4p6q"}],"ranges":[{"events":[{"introduced":"0.31.0"},{"fixed":"0.32.0"}],"type":"ECOSYSTEM"}],"versions":["0.31.0"],"fixed":["0.32.0"]}],"sourceAffected":[],"references":["https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q","https://nvd.nist.gov/vuln/detail/CVE-2026-125123","https://github.com/tmatens/compose-lint/pull/945","https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688","https://github.com/tmatens/compose-lint","https://github.com/tmatens/compose-lint/releases/tag/v0.32.0"],"sources":[{"name":"OSV","id":"GHSA-8v59-qmwv-4p6q","modified":"2026-11-10T22:15:03.405244565Z","url":"https://osv.dev/vulnerability/GHSA-8v59-qmwv-4p6q"},{"name":"CVE","id":"CVE-2026-125123","modified":"2026-11-10T21:06:30.476Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-125123"}],"assessments":[{"source":"OSV","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","score":2.3},{"source":"GitHub_M","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","score":2.3}],"cve":{"records":[{"id":"CVE-2026-125123","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-09T17:45:35.936Z","published":"2026-11-10T16:52:31.891Z","modified":"2026-11-10T21:06:30.476Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-10T16:52:31.891Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-10T21:06:30.476Z"}],"references":[{"url":"https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/tmatens/compose-lint/pull/945","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/tmatens/compose-lint/releases/tag/v0.32.0","tags":["x_refsource_MISC"],"source":"GitHub_M"}],"weaknesses":[{"id":"CWE-117","description":"CWE-117: Improper Output Neutralization for Logs","source":"GitHub_M"},{"id":"CWE-150","description":"CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-10T21:06:15.458993Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"tmatens","name":"compose-lint","platforms":[],"versions":[{"version":"= 0.31.0","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-125123"}],"remediation":[],"observedAt":"2026-11-11T02:56:53.809Z","kev":{"status":"not-listed","checkedAt":"2026-11-16T00:10:31.802Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-10T17:05:52.280Z","attemptedAt":"2026-11-10T17:05:52.280Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-10T17:05:37.509Z","attemptedAt":"2026-11-10T17:05:37.509Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-10T17:05:38.042Z","attemptedAt":"2026-11-10T17:05:38.042Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-10T17:05:37.502Z","attemptedAt":"2026-11-10T17:05:37.502Z"}],"evidence":[],"aiSummary":{"text":"The compose-lint package, version 0.31.0, has a weakness where file paths can inject CI workflow commands through command-line error messages, potentially allowing a pull request to create annotations or issue other commands. This occurs when repository paths are passed to compose-lint without a `--` before them. The impact is limited to CI workflow commands.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-11T08:31:11.882Z","sources":[{"name":"OSV","url":"https://osv.dev/vulnerability/GHSA-8v59-qmwv-4p6q"},{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-125123"}]}}