Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
tmatens compose-lint
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

compose-lint 是一款用于 Docker Compose 的安全检查工具,旨在部署前识别危险配置问题。在 0.31.0 版本中,当通过 或 选项将结果输出到标准输出(stdout)时,compose-lint 未对字符串中包含的 操作符进行清理。攻击者可通过拉取请求(Pull Request)将该操作符嵌入服务名称或其他 Compose 配置值中;当该工具以包、pre-commit 钩子或 Docker 镜像的形式运行时,若其向作业日志输出 JSON 或 SARIF 格式内容,GitHub Actions

CVSS 2.3 · Low

Affected Version Matrix 1

VendorProduct Version RangeStatus
tmatens compose-lint = 0.31.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125122

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
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
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
日志输出的转义处理不恰当
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
tmatens compose-lint = 0.31.0 -

II. Public POCs for CVE-2026-125122

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-125122

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-125122 (1)

Vendor Advisories for CVE-2026-125122 (1)

Vendor Pages for CVE-2026-125122 (1)

Same Patch Batch · tmatens · 2026-11-10 · 5 CVEs total

CVE-2026-125121 5.3 MEDIUM compose-lint: Text in a pull request can still issue CI workflow commands through compose-
CVE-2026-125125 2.3 LOW compose-lint: A symlink in a pull request can issue workflow commands through the compose-
CVE-2026-125124 2.3 LOW compose-lint: Text in a pull request can reach Azure Pipelines as logging commands through
CVE-2026-125123 2.3 LOW compose-lint: A file path in a pull request can issue CI workflow commands through compose

IV. Related Vulnerabilities