compose-lint: .env read through a symlink outside the project can expose the CI job's environment
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| pip:compose-lint | >= 0.22.0, <= 0.30.0 | 0.31.0 |
| actions:tmatens/compose-lint | >= 0.22.0, <= 0.30.0 | 0.31.0 |
compose-lint fills in ${VAR} references from the .env file next to the Compose file. It is meant to read nothing outside the project directory, and env_file:, include: and extends: paths are checked for that. The .env read is not. If .env is a symlink, compose-lint follows it wherever it points. A pull request can add a .env symlink to any file on the CI runner and a Compose file that references a variable from it. compose-lint substitutes the value and quotes it in finding messages, which go t…
Read on GitHub Advisory Database
On 11/11/2026, 12:56 AM, GitHub Advisory Database published "compose-lint: .env read through a symlink outside the project can expose the CI job's environment" (type: Advisory). Severity is "Low" (low). Related technologies: Python, GitHub Actions. CVE: CVE-2026-123368.