compose-lint: A committed symlink makes compose-lint quote a file from outside the project into its output
- CVE-2026-123373
- GHSA-whr6-fgpq-fpv9
- EUVD-2026-120156
Description
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.2.0 until 0.25.0, compose-lint follows a project-controlled symbolic link used as the Compose file outside the project. The same issue affects compose.override.yml and a COMPOSE_FILE entry from 0.22.0, and an env_file target from 0.23.0. If an external Compose-related target fails YAML parsing, the error quotes an attacker-uncontrolled line into standard error, JSON errors, and SARIF notifications, while an external env_file can expose credential-like key names through CL-0020 and CL-0021 findings. The attacker selects the target path but not the exact parser-failure line, values from env_file are not printed, and the pass or fail result is unchanged. This issue is fixed in version 0.25.0.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
tmatens compose-lint
Affected versions Fixed in >= 0.2.0, < 0.25.0 none stated compose-lintPyPI
Affected versions Fixed in from 0.2.0 up to 0.24.0 none stated tmatens/compose-lintGitHub Actions
Affected versions Fixed in from 0.2.0 up to 0.24.0 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.