{"id":"CVE-2026-125123","aliases":["CVE-2026-125123","GHSA-8v59-qmwv-4p6q"],"related":[],"kind":"vulnerability","state":"published","title":"compose-lint: A file path in a pull request can issue CI workflow commands through compose-lint 0.31.0's command-line error messages","summary":"compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint's argument parser writes rejected repository paths to stderr without the output sanitizer when a path is passed without a preceding -- separator. A pull request can supply a path containing workflow-command syntax; a carriage return can position that command at the start of a new line recognized by the GitHub Actions runner, allowing the package, Docker image, or a pre-commit hook with misconfigured args to issue the command in the job log. The default pre-commit configuration includes -- and is not affected, the GitHub Action is not affected, and the lint pass or fail result is unchanged. This issue is fixed in version 0.32.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint's argument parser writes rejected repository paths to stderr without the output sanitizer when a path is passed without a preceding -- separator. A pull request can supply a path containing workflow-command syntax; a carriage return can position that command at the start of a new line recognized by the GitHub Actions runner, allowing the package, Docker image, or a pre-commit hook with misconfigured args to issue the command in the job log. The default pre-commit configuration includes -- and is not affected, the GitHub Action is not affected, and the lint pass or fail result is unchanged. This issue is fixed in version 0.32.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-11-10T16:52:31.891Z","modified":"2026-11-12T22:18:51.470Z","severity":{"scorer":"GitHub_M","scheme":"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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"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","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"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","rating":"LOW"}],"cwes":["CWE-117","CWE-150"],"affected":[{"ranges":[{"version":"= 0.31.0","status":"affected"}],"vendor":"tmatens","product":"compose-lint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.31.0","status":"affected","fixed":"0.32.0"}],"ecosystem":"PyPI","package":"compose-lint","purl":"pkg:pypi/compose-lint","source":"ghsa"}],"references":[{"url":"https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/pull/945","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/releases/tag/v0.32.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125123","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tmatens/compose-lint","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-10T21:06:15.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-125123","url":"https://www.cve.org/CVERecord?id=CVE-2026-125123","licence":"CVE Terms of Use","modified":"2026-11-10T21:06:30.476Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v59-qmwv-4p6q","url":"https://github.com/advisories/GHSA-8v59-qmwv-4p6q","licence":"CC-BY-4.0","modified":"2026-11-10T22:15:03.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-125123","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125123","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"}],"updatedAt":"2026-11-25T22:59:49.793Z","epss":{"score":0.00397,"percentile":0.35998,"date":"2026-12-01T12:00:22.000Z"}}