CVE-2026-123368: compose-lint: .env read through a symlink outside the project can expose the CI job's environment
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-6wcv-rj3c-mhv3
Summary
The compose-lint utility fails to validate symlinks in .env and project directory paths, allowing the tool to read sensitive files outside the intended project scope. Users of the compose-lint GitHub Action or PyPI package should upgrade to version 0.31.0 immediately to prevent potential exposure of CI environment variables.
Who is affected
The vulnerability allows an attacker to create a symlink to sensitive files, such as /proc/self/environ, which compose-lint then reads and includes in its diagnostic output. This information can be leaked into logs, JSON, or SARIF artifacts. The risk is elevated in environments using pull_request_target workflows or CI systems that do not automatically mask secrets.
Exploitability
The vulnerability has a low CVSS base score of 3.1, reflecting its low confidentiality impact and the requirement for social engineering or user interaction. With an EPSS score of 0.005 and no record in the CISA KEV database, active exploitation is currently considered rare and requires a complex attack vector.
Remediation
- Update the tmatens/compose-lint GitHub Action and the PyPI compose-lint package to version 0.31.0 or later.
- If immediate patching is not possible, run compose-lint with the --no-env flag.
- Avoid running compose-lint on untrusted pull requests within jobs that have access to sensitive environment secrets.
How to check your project
- Check the 'compose-lint' version in your GitHub Actions workflow configuration (e.g., in .github/workflows/*.yml files).
- Inspect the 'requirements.txt', 'pyproject.toml', or 'setup.py' files if using the PyPI package to verify the installed version.
- Run 'compose-lint --version' in the environment where the tool is installed to identify the current build.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| GitHub Actions | tmatens/compose-lint |
>= 0.22.0, < 0.31.0 | 0.31.0 | uses: tmatens/[email protected] |
| PyPI | compose-lint |
>= 0.22.0, < 0.31.0 | 0.31.0 | python -m pip install 'compose-lint>=0.31.0' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | None |
| Availability | None |
FAQ
Does this flaw allow an attacker to modify my CI environment?
No. The vulnerability is limited to unauthorized reading and disclosure of environment data; it does not affect the pass/fail results of the linter or allow code execution.
Why is the impact considered low?
The severity is scored as low because GitHub natively masks secrets in job logs and standard pull requests from forks typically run without access to sensitive repository secrets.
How does the fix handle symlinks?
The 0.31.0 patch implements containment checks that verify if a resolved path resides within the project directory; if a path resolves outside, it is treated as missing.
Original advisory description
References
- WEB https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-123368
- WEB https://github.com/tmatens/compose-lint/pull/917
- WEB https://github.com/tmatens/compose-lint/commit/c43204ad4dab11d54e20574a52bc4e5835246ca5
- PACKAGE https://github.com/tmatens/compose-lint
- WEB https://github.com/tmatens/compose-lint/releases/tag/v0.31.0
Source records: GHSA-6wcv-rj3c-mhv3 (OSV.dev) · EPSS by FIRST, 2026-11-26.