---
id: "CVE-2026-125123"
page: "https://infrastack.ai/live/CVE-2026-125123"
kind: "vulnerability"
aliases: ["CVE-2026-125123"]
title: "compose-lint: unsanitized stderr lets pull request paths inject GitHub Actions commands"
severity: "low"
cvss: 2.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["compose-lint", "docker-compose", "github-actions", "package", "pre-commit"]
not_affected_if: ["default-pre-commit-config", "github-action", "version-below-0.31.0-or-0.32.0"]
published_at: "2026-11-10T17:17:26+00:00"
first_seen_at: "2026-11-10T17:22:41+00:00"
updated_at: "2026-11-10T17:25:49+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125123", "first_seen_at": "2026-11-10T17:22:41+00:00"}]
exploit_sources: []
---

# compose-lint: unsanitized stderr lets pull request paths inject GitHub Actions commands

Link for people: https://infrastack.ai/live/CVE-2026-125123 (this .md is for agents)

compose-lint 0.31.0 writes rejected repository paths to stderr without sanitizing them when no -- separator precedes the path. A crafted pull request path containing a carriage return and workflow-command syntax can make the GitHub Actions runner execute that command in the job log.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed compose-lint version, for example `compose-lint --version`, and look for `0.31.0`.
- Search CI configs for compose-lint invocations that pass paths without a preceding `--`.
- The default pre-commit configuration includes `--` and the GitHub Action is not affected, per the sources.

## Fix

- compose-lint: move to `0.32.0`.

## Timeline

- 2026-11-10T17:22:41+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125123

## Documents

- [advisory] Vendor advisory: github.com https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q
- [fix] Patch: github.com https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688
- [fix] Release notes: github.com https://github.com/tmatens/compose-lint/releases/tag/v0.32.0

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
