NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-67746: Composer is vulnerable to ANSI sequence injection

lowCVSS 4.0 1.2GHSA-59pp-r3rg-353g

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.

Published Dec 30, 2025 · Updated Dec 31, 2025

Affected packages

composer/composer

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.2.26
Fixed in
2.2.26
Check
composer show composer/composer

composer/composer

Ecosystem
Composer (PHP)
Affected
>= 2.3.0, < 2.9.3
Fixed in
2.9.3
Check
composer show composer/composer

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to cs278.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries