{"id":"CVE-2026-123369","aliases":["CVE-2026-123369","GHSA-6f4g-xm8v-pgv6"],"related":["CVE-2026-125121"],"kind":"vulnerability","state":"published","title":"compose-lint: Compose file text can issue GitHub Actions workflow commands through the compose-lint Action","summary":"compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. Prior to 0.31.0, compose-lint prints attacker-controlled service names, environment keys, file lines, and other Compose text without neutralizing GitHub Actions and Azure Pipelines workflow-command openers. When a workflow processes a pull request, legacy ##[ commands or a line-leading double-colon command can create false annotations, hide log regions, mask selected strings, or invoke other commands recognized by the runner. The affected text report paths do not alter the compose-lint exit code or pass or fail result, but they can misrepresent the CI output presented to reviewers. This issue is fixed in version 0.31.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. Prior to 0.31.0, compose-lint prints attacker-controlled service names, environment keys, file lines, and other Compose text without neutralizing GitHub Actions and Azure Pipelines workflow-command openers. When a workflow processes a pull request, legacy ##[ commands or a line-leading double-colon command can create false annotations, hide log regions, mask selected strings, or invoke other commands recognized by the runner. The affected text report paths do not alter the compose-lint exit code or pass or fail result, but they can misrepresent the CI output presented to reviewers. This issue is fixed in version 0.31.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe GitHub Actions runner treats certain text in a step's output as commands. The legacy form, `##[command]`, is recognized anywhere in a line. compose-lint's text report prints service names, environment keys and lines of the Compose file, and it does not neutralize `##[`. Inside the compose-lint Action, a Compose file from a pull request can therefore:\n\n- create fake error or warning annotations on the pull request (`##[error]`, `##[warning]`)\n- fold the rest of the log, including the real verdict, out of sight (`##[group]`)\n- blank out chosen strings for the rest of the log (`##[add-mask]`)\n\nGitHub has postponed removing the deprecated `set-output` log command, so the runner still honors it. A test run of the Action on a GitHub-hosted runner confirmed that a `::set-output` line from a Compose file is processed. Whether it can override the Action's own `sarif-written` output, which decides whether the SARIF upload step runs, has not been tested.\n\nThe exit code and the pass/fail result are not affected. Azure Pipelines parses the same `##[` syntax, so the pip package is listed for anyone printing the text report in other CI systems.\n\nFound during an internal pre-1.0 security review.\n\n### Patches\n\nFixed in 0.31.0. The Action stops the runner from processing workflow commands while compose-lint's output is printed, using a random `stop-commands` token. The text report also escapes `##[`, and `::` at the start of a line, in anything taken from the Compose file.\n\n### Workarounds\n\n- In your own workflow, wrap the compose-lint step in `::stop-commands::<random token>` and `::<random token>::`.\n- Use `--format json` or `--format sarif` rather than the text report when linting untrusted pull requests.\n\n### Reproduction\n\n```yaml\nservices:\n  web:\n    image: \"nginx:1.25\"\n    environment:\n      \"##[error]DB_PASSWORD\": placeholder\n  \"##[group]svc\":\n    image: \"nginx:1.25\"\n    privileged: true\n```\n\nRun through the Action, this produces a fake error annotation and folds the remaining log lines, including the FAIL verdict, into a collapsed group.","format":"markdown","source":"ghsa"}],"published":"2026-11-09T17:32:25.031Z","modified":"2026-11-12T22:18:51.470Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"MEDIUM"}],"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.2.0","status":"affected","fixed":"0.31.0"},{"type":"git","introduced":"60c091c7cc8f86c6b0c5954031097364fea0a201","status":"affected","fixed":"a6a7a76736de1c72abfa96c41ff8af556ffdc55f"}],"ecosystem":"GitHub Actions","package":"tmatens/compose-lint","repo":"https://github.com/tmatens/compose-lint","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.31.0"}],"ecosystem":"PyPI","package":"compose-lint","purl":"pkg:pypi/compose-lint","source":"ghsa"}],"references":[{"url":"https://github.com/tmatens/compose-lint/security/advisories/GHSA-6f4g-xm8v-pgv6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/pull/918","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/commit/672bd11145621f787c295fb11f3a859cdec1b38d","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tmatens/compose-lint/releases/tag/v0.31.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123369","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-09T22:52:06.368Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-123369","url":"https://www.cve.org/CVERecord?id=CVE-2026-123369","licence":"CVE Terms of Use","modified":"2026-11-09T22:55:25.407Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6f4g-xm8v-pgv6","url":"https://github.com/advisories/GHSA-6f4g-xm8v-pgv6","licence":"CC-BY-4.0","modified":"2026-11-11T02:57:10.295Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-123369","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123369","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"}],"updatedAt":"2026-11-25T22:59:49.607Z","epss":{"score":0.00412,"percentile":0.37509,"date":"2026-12-01T12:00:22.000Z"}}