Composer is vulnerable to ANSI sequence injection
Package
Affected versions
>= 2.0.0, < 2.2.26
>= 2.3.0, < 2.9.3
Patched versions
2.2.26
2.9.3
Description
Published by the National Vulnerability Database
Dec 30, 2025
Published to the GitHub Advisory Database
Dec 30, 2025
Reviewed
Dec 30, 2025
Last updated
Dec 31, 2025
Impact
Attackers controlling remote sources that Composer downloads from might in some way inject ANSI control characters in the terminal output of various Composer commands, causing mangled output and potentially leading to confusion or DoS of the terminal application.
There is no proven exploit and this has thus a low severity but Composer still published a CVE as it has potential for abuse, and Composer wants to be on the safe side informing users that they should upgrade.
Patches
2.2.26 for 2.2 LTS or 2.9.3 for mainline.
References