CVE-2025-67746: Composer/composer Composer Is Vulnerable To ANSI Vulnerability
LOWCVE-2025-67746 is a LOW composer is vulnerable to ansi vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Composer/composer libraries in the Packagist ecosystem. The issue involves composer is vulnerable to ansi sequence injection. Remediation is available by upgrading affected packages to version 2.2.26, 2.9.3.
CVE-2025-67746 at a Glance
How to Fix CVE-2025-67746
To remediate this vulnerability, upgrade all affected Composer/composer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade composer/composer to 2.2.26
Upgrade composer/composer to 2.9.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for composer/composer
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-67746, inspect your project dependencies for Composer/composer:
inspect dependencies for composer/composer
Analyze the terminal output to locate any version of Composer/composer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.26), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Composer/composer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67746 Affected Composer/composer Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
composer/composer
|
Packagist |
≥ 2.0.0
< 2.2.26
|
2.2.26
|
|
composer/composer
|
Packagist |
≥ 2.3.0
< 2.9.3
|
2.9.3
|
References
Frequently Asked Questions
What is CVE-2025-67746?
Which Composer/composer versions are affected?
What version fixes CVE-2025-67746?
Is composer/composer affected?
What CWE is associated with CVE-2025-67746?
How can I check Packagist dependencies for CVE-2025-67746?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-59pp-r3rg-353g",
"modified" : "2025-12-31T22:17:32Z",
"published" : "2025-12-30T17:44:10Z",
"aliases" : [ "CVE-2025-67746" ],
"summary" : "Composer is vulnerable to ANSI sequence injection",
"details" : "### Impact\nAttackers 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.\n\nThere 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.\n\n### Patches\n2.2.26 for 2.2 LTS or 2.9.3 for mainline.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "composer/composer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.2.26"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "composer/composer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.9.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67746"
}, {
"type" : "WEB",
"url" : "https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917"
}, {
"type" : "WEB",
"url" : "https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/composer/composer"
}, {
"type" : "WEB",
"url" : "https://github.com/composer/composer/releases/tag/2.2.26"
}, {
"type" : "WEB",
"url" : "https://github.com/composer/composer/releases/tag/2.9.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-30T17:44:10Z",
"nvd_published_at" : "2025-12-30T16:15:47Z"
}
}