compose-lint: File paths embedded in pull requests can inject CI workflow commands through command-line error messages
0.31.0 fixed GHSA-6f4g-xm8v-pgv6, where text from a Compose file became GitHub Actions workflow commands in compose-lint's output. The fix escapes the command openers in compose-lint's own output, but not in the argument parser's error messages. When a repository path reaches compose-lint's arguments without a -- before it, the argument parser prints it raw in its error message. That includes a carriage return, which the runner treats as a line break, so a command can also start a new line there.
Recorded fixes — compose-lint: 0.32.0. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 0.31.0 before 0.32.0Ecosystem versions | 0.32.0 |
Version evidence: OSV · GHSA-8v59-qmwv-4p6q
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.31.0"
},
{
"fixed": "0.32.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.31.0"
]
}