Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-125121

compose-lint: Text in a pull request can still issue CI workflow commands through compose-lint 0.31.0's output

Products / packages tmatens compose-lint · compose-lint

Published

Share

Severity and exploitation

Not in CISA KEVSource: MODERATE

KEV coverage does not rule out exploitation.

KEV checked 14/11/2026, 22:55:31 UTC
OSV · CVSS:4.0 · 5.3
Assessment vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
GitHub_M · CVSS:4.0 · 5.3
Assessment vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
The headline uses the highest imported catalog score. Assessments can differ by source and CVSS version.

Severity

medium5.3

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Package fixes recorded

Fix versions are recorded for 1 of 1 mapped packages. Check each release branch and any separate product guidance.

What this means

compose-lint 0.31.0 is vulnerable to improper output neutralization, allowing a pull request to issue CI workflow commands. An attacker with access to a pull request can create annotations or hide parts of the job log. The vulnerability affects setups that print compose-lint's output to a CI log without the GitHub Action.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

tmatens · GitHub_M

compose-lint

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

>= 0.31.0, < 0.32.0

unaffected

unknown

Other versions: unknown

Packages

Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.

Affected range Recorded fix
From 0.31.0 before 0.32.0Ecosystem versions0.32.0

Version evidence: OSV · GHSA-r7j4-crjv-h467

View original version evidence (1 explicit versions)

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

Use the recorded fix for your release branch. Review the publisher’s instructions and test compatibility before upgrading.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

Impact

0.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 everything compose-lint prints, and the 0.31.0 changelog says the report "escapes both openers (also covering Azure Pipelines)". Five paths were left open:

  • Unicode whitespace before a line-leading ::. The runner strips all Unicode whitespace from the start of a line before it looks for a command. compose-lint only accounted for spaces and tabs, so a no-break space or another Unicode space ahead of :: is not escaped. It can come from a Compose value, or from a file name: the text report's file heading and per-file summary, and the fix summary on stderr, start with the path as given, so a directory named with a leading no-break space followed by :: puts a command at the start of a line. This reaches those lines, the text report's fix guidance, the fix dry-run diff, and continuation lines of stderr diagnostics.
  • JSON and SARIF printed to stdout. --format json and --format sarif output never passed through the sanitizer, so ##[ inside a service name or other value reaches the log intact when the output isn't redirected to a file.
  • Command-line errors. 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.
  • Azure Pipelines. ##vso[ logging commands were not escaped on any path, despite the changelog's Azure claim.
  • An error message in the GitHub Action (0.30.0 and 0.31.0). When sarif-file: names a file in a subdirectory that can't be created, the Action prints the directory's resolved path in an error message, outside the window in which it turns command processing off. A pull request can commit a symlink on that path to a directory whose name contains a newline followed by a command. The documented setup, sarif-file: results.sarif at the repository root, is not affected.

A 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.

Affected setups are those that print compose-lint's output to a CI log without the GitHub Action: the compose-lint package run directly in a workflow, the pre-commit hook run in CI, and the Docker image. The pre-commit hook is affected in its default configuration: it passes each changed file's path to compose-lint, and a path whose directory name starts with Unicode whitespace and :: reaches the report's file heading. The JSON/SARIF and command-line paths also need output left on stdout, or args: without the documented trailing --, which is why they alone would score lower. The GitHub Action turns command processing off around each compose-lint run, so of these paths only its own error message affects it, and only when sarif-file: points into a subdirectory. That setup is outside the documented one, which is why that path alone would also score lower.

Found during an internal pre-1.0 security review.

Docker image. composelint/compose-lint tag 0.31.0, the matching minor tag, and latest are affected.

Releases before 0.31.0 are covered by GHSA-6f4g-xm8v-pgv6, except the Action's error message, which also affects Action 0.30.0.

Patches

Fixed in 0.32.0. The line-start escaping covers every character the runner strips before ::, so it holds for quoted values and file names alike. JSON and SARIF on stdout escape ##[ inside strings as \u005b, which decodes to the same data. argparse's own messages go through the same sanitizer. ##vso[ is escaped everywhere. In the Action, the SARIF-directory error names the sarif-file: input as written.

Workarounds

  • Upgrade to 0.32.0 or later.
  • 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.
  • In the Action, keep sarif-file at the workspace root, for example sarif-file: results.sarif.
  • Write --format json and --format sarif output to a file rather than the log.
  • End the pre-commit hook's args: with --. This closes the command-line path only; it does not stop a file name at the start of a report line, so in CI also bracket the pre-commit step with ::stop-commands:: as above.
  • On Azure Pipelines, don't print compose-lint's output from runs over untrusted pull requests to the job log.

Reproduction

On compose-lint 0.31.0 on a GitHub-hosted runner (runner 2.337.0), each of the following creates an annotation:

  • a Compose file with image: "nginx\n\u00a0::notice::X", linted with the text report;
  • a directory named \u00a0::notice::X (a no-break space, then ::notice::X) holding a compose.yml, linted with compose-lint -- '<that directory>/compose.yml', or by the pre-commit hook in its default configuration;
  • a service named a##[warning]X, linted with --format json or --format sarif to stdout;
  • compose-lint '--##[warning]X/compose.yml' with no --;
  • the Action with sarif-file: out/reports/results.sarif, where out is a committed symlink to a directory named d\n::warning::X that contains a regular file reports.

The same inputs with a plain space in place of the no-break space, or with -- before the path, or with sarif-file at the repository root, create none. The same inputs on compose-lint 0.30.0 create annotations even with a plain space, which is GHSA-6f4g-xm8v-pgv6. The composelint/compose-lint:0.31.0 image produces byte-identical output to the package.

References

6 sources

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-125121

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-117 ↗

CWE-117: Improper Output Neutralization for Logs

GitHub_M

Related →
CWE-150 ↗

CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences

GitHub_M

Related →
Contributing organizations · 2
GitHub_M

Assigning organization

2026-11-10
CISA-ADP

Additional data publisher

2026-11-12

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
  1. CVE · CVE-2026-125121

    Observed 2026-11-12T19:40:00.911Z · upstream updated 2026-11-12T18:02:58.677Z

    Prioritization updated

    before

    []

    after

    [
      {
        "source": "CISA-ADP",
        "type": "SSVC",
        "role": "CISA Coordinator",
        "timestamp": "2026-11-12T16:37:51.109387Z",
        "decisions": [
          {
            "name": "Exploitation",
            "value": "none"
          },
          {
            "name": "Automatable",
            "value": "yes"
          },
          {
            "name": "Technical Impact",
            "value": "partial"
          }
        ]
      }
    ]
  2. CVE · CVE-2026-125121

    Observed 2026-11-10T17:01:37.846Z · upstream updated 2026-11-10T16:50:03.051Z

    Product or version evidence changed

    before

    [
      {
        "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-125121"
      }
    ]

    after

    [
      {
        "vendor": "tmatens",
        "name": "compose-lint",
        "platforms": [],
        "versions": [
          {
            "version": ">= 0.31.0, < 0.32.0",
            "status": "affected"
          }
        ],
        "cpes": [],
        "source": "GitHub_M",
        "url": "https://www.cve.org/CVERecord?id=CVE-2026-125121"
      }
    ]
    References changed

    before

    [
      "https://github.com/tmatens/compose-lint/security/advisories/GHSA-r7j4-crjv-h467",
      "https://github.com/tmatens/compose-lint/pull/945",
      "https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688",
      "https://github.com/tmatens/compose-lint/releases/tag/v0.32.0"
    ]

    after

    [
      "https://github.com/tmatens/compose-lint/security/advisories/GHSA-r7j4-crjv-h467",
      "https://github.com/tmatens/compose-lint/pull/945",
      "https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688",
      "https://github.com/advisories/GHSA-6f4g-xm8v-pgv6",
      "https://github.com/tmatens/compose-lint/releases/tag/v0.32.0"
    ]

Large field values are marked as truncated previews. Original source snapshots remain retained.

Showing up to 50 most recent observed changes.