GHSA-59pp-r3rg-353g
Composer is vulnerable to ANSI sequence injection
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Packagist | composer/composer | >= 2.0.0, < 2.2.26 | 2.2.26 |
| Packagist | composer/composer | >= 2.3.0, < 2.9.3 | 2.9.3 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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
External links from the advisory. They lead to third-party sites.
- https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g
- https://nvd.nist.gov/vuln/detail/CVE-2025-67746
- https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917
- https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71
- https://github.com/composer/composer
- https://github.com/composer/composer/releases/tag/2.2.26
- https://github.com/composer/composer/releases/tag/2.9.3