Public vulnerability disclosure

CVE-2026-123368

compose-lint: .env read through a symlink outside the project can expose the CI job's environment

publishedCWE-22CWE-59

compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.22.0 until 0.31.0, compose-lint follows a sibling .env symbolic link outside the project without applying its normal containment check. From 0.28.0, the same gap also affects an include project_directory link outside the project. A pull request can reference a variable from the linked file, causing substitution to place runner file or process-environment data into finding messages written to logs, JSON, SARIF artifacts, and Code Scanning alerts. Reading /proc/self/environ can expose the remainder of the linter process environment because NUL-separated entries are treated as one value, although disclosure requires a workflow that processes untrusted changes with useful environment data and GitHub normally withholds secrets from fork pull requests. The pass or fail result is not changed. This issue is fixed in version 0.31.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.31.0. Check the advisory for the affected release branch.

Source: GitHub GHSA-6wcv-rj3c-mhv3

Fix

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

Source: GitHub GHSA-6wcv-rj3c-mhv3

Fix

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

Source: OSV GHSA-6wcv-rj3c-mhv3

Fix

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

Source: OSV GHSA-6wcv-rj3c-mhv3

Fix

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

Source: OSV GHSA-6wcv-rj3c-mhv3

Affected products and versions

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

compose-lint
pip
>= 0.22.0, <= 0.30.0 (affected, GitHub advisory range) GitHub GHSA-6wcv-rj3c-mhv3
tmatens/compose-lint

tmatens/compose-lint
actions
>= 0.22.0, <= 0.30.0 (affected, GitHub advisory range) GitHub GHSA-6wcv-rj3c-mhv3
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)
Ecosystem version events: introduced 0.22.0; fixed 0.31.0
Source events (ECOSYSTEM)
[
  {
    "introduced": "0.22.0"
  },
  {
    "fixed": "0.31.0"
  }
]

Other versions: unaffected
OSV GHSA-6wcv-rj3c-mhv3
tmatens/compose-lint

tmatens/compose-lint
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.31.0
Source events (ECOSYSTEM)
[
  {
    "introduced": "0.22.0"
  },
  {
    "fixed": "0.31.0"
  }
]

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

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

[
  {
    "introduced": "811ef6b379dbc78d048fcedaf976205705d4a7c3"
  },
  {
    "fixed": "a6a7a76736de1c72abfa96c41ff8af556ffdc55f"
  }
]

Other versions: unaffected
OSV GHSA-6wcv-rj3c-mhv3

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

No exploit evidence in collected sources. This is not proof of no exploitation.

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