Public vulnerability disclosure

CVE-2026-123372

compose-lint: A pull request can make compose-lint quote a secret from a CI-generated `.env` into its findings

publishedCWE-200CWE-532

compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.22.0 until 0.32.0, compose-lint substitutes values from a sibling .env file into image fields and quotes the resolved value in CL-0004 and CL-0019 finding messages and fix text. In a workflow that writes secrets into that file and then lints untrusted pull-request content, an attacker can reference a secret variable so its whole value reaches the job log, JSON output, SARIF artifacts, and Code Scanning alerts. Fork pull requests normally lack secrets, so exploitation requires a secret-bearing workflow such as pull_request_target, same-repository branches, or a retained .env on a self-hosted runner, and the pass or fail result is unchanged. This issue is fixed in version 0.32.0.

Technical severity2.3 lowCVSS 4.0 · CNA: GitHub_M
Published2026-11-09Source updated 2026-11-13
Collected2026-11-135 attributed sources

Fixes and workarounds

Fix

compose-lint (pip): GitHub reports patched versions 0.32.0. Check the advisory for the affected release branch.

Source: GitHub GHSA-jf3h-8jvx-vcrg

Fix

tmatens/compose-lint (actions): GitHub reports patched versions 0.32.0. Check the advisory for the affected release branch.

Source: GitHub GHSA-jf3h-8jvx-vcrg

Fix

compose-lint (PyPI): OSV reports a fixed version 0.32.0. Check the advisory for supported release branches.

Source: OSV GHSA-jf3h-8jvx-vcrg

Fix

tmatens/compose-lint (GitHub Actions): OSV reports a fixed version 0.32.0. Check the advisory for supported release branches.

Source: OSV GHSA-jf3h-8jvx-vcrg

Fix

tmatens/compose-lint: OSV reports a fix at commit 2d42617e4c6416f797bbfc6a057950131fa02df3.

Source: OSV GHSA-jf3h-8jvx-vcrg

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
compose-lint
tmatens
>= 0.22.0, < 0.32.0 (affected) CNA: GitHub_M
compose-lint

compose-lint
pip
>= 0.22.0, <= 0.31.0 (affected, GitHub advisory range) GitHub GHSA-jf3h-8jvx-vcrg
tmatens/compose-lint

tmatens/compose-lint
actions
>= 0.22.0, <= 0.31.0 (affected, GitHub advisory range) GitHub GHSA-jf3h-8jvx-vcrg
compose-lint

compose-lint
PyPI
0.22.0 (affected, PyPI)
0.23.0 (affected, PyPI)
0.24.0 (affected, PyPI)
0.25.0 (affected, PyPI)
0.26.0 (affected, PyPI)
0.27.0 (affected, PyPI)
0.28.0 (affected, PyPI)
0.29.0 (affected, PyPI)
0.30.0 (affected, PyPI)
0.31.0 (affected, PyPI)
Ecosystem version events: introduced 0.22.0; fixed 0.32.0
Source events (ECOSYSTEM)
[
  {
    "introduced": "0.22.0"
  },
  {
    "fixed": "0.32.0"
  }
]

Other versions: unaffected
OSV GHSA-jf3h-8jvx-vcrg
tmatens/compose-lint

tmatens/compose-lint
GitHub Actions
v0.31.0 (affected, GitHub Actions)
v0.30.0 (affected, GitHub Actions)
v0.29.0 (affected, GitHub Actions)
v0.28.0 (affected, GitHub Actions)
v0.27.0 (affected, GitHub Actions)
v0.26.0 (affected, GitHub Actions)
v0.25.0 (affected, GitHub Actions)
v0.24.0 (affected, GitHub Actions)
v0.23.0 (affected, GitHub Actions)
v0.22.0 (affected, GitHub Actions)
Ecosystem version events: introduced 0.22.0; fixed 0.32.0
Source events (ECOSYSTEM)
[
  {
    "introduced": "0.22.0"
  },
  {
    "fixed": "0.32.0"
  }
]

Git commit history: introduced 811ef6b379dbc78d048fcedaf976205705d4a7c3; fixed 2d42617e4c6416f797bbfc6a057950131fa02df3
Source events (GIT)

Commit identifiers describe source repository history. They are not release-version comparisons.

[
  {
    "introduced": "811ef6b379dbc78d048fcedaf976205705d4a7c3"
  },
  {
    "fixed": "2d42617e4c6416f797bbfc6a057950131fa02df3"
  }
]

Other versions: unaffected
OSV GHSA-jf3h-8jvx-vcrg

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 2.3
low
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NCNA: GitHub_M
4.0 / 2.3
low
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/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:XNVD: [email protected]

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide