# CVE-2026-125122: compose-lint: Text in a pull request can issue CI workflow commands through compose-lint 0.31.0's JSON and SARIF output on stdout

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-11-10T16:50:46.826Z
- Modified: 2026-11-13T16:17:43.487Z
- Also known as: GHSA-hr4h-4c45-v4q4
- Weaknesses: CWE-117, CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint does not sanitize the ##[ workflow-command opener inside strings written by --format json or --format sarif to stdout. A pull request can place that opener in a service name or other Compose value, and the GitHub Actions runner recognizes it even in the middle of a serialized line when the package, pre-commit hook, or Docker image prints JSON or SARIF to the job log. Writing the output to a file and using the compose-lint GitHub Action are not affected, and the flaw does not change the lint pass or fail result. This issue is fixed in version 0.32.0.

(As written by CVE List.)

## Affected

- tmatens compose-lint: = 0.31.0
- compose-lint (PyPI): from 0.31.0 before 0.32.0

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/tmatens/compose-lint/security/advisories/GHSA-hr4h-4c45-v4q4> (web)
- <https://github.com/tmatens/compose-lint/pull/945> (web)
- <https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688> (web)
- <https://github.com/tmatens/compose-lint/releases/tag/v0.32.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-125122> (advisory)
- <https://github.com/tmatens/compose-lint> (package)

## Sources

- CVE List: [CVE-2026-125122](https://www.cve.org/CVERecord?id=CVE-2026-125122), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-hr4h-4c45-v4q4](https://github.com/advisories/GHSA-hr4h-4c45-v4q4), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-125122](https://nvd.nist.gov/vuln/detail/CVE-2026-125122), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-125122 · Whole record: https://cve.day/CVE-2026-125122.json · Rebuilt by cve.day 2026-11-25T22:59:49.793Z
