Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. composer/composer
  4. ›
  5. CVE-2025-67746

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

December 30, 2025 (updated December 31, 2025)

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.

References

  • github.com/advisories/GHSA-59pp-r3rg-353g
  • github.com/composer/composer
  • github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917
  • github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71
  • github.com/composer/composer/releases/tag/2.2.26
  • github.com/composer/composer/releases/tag/2.9.3
  • github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g
  • nvd.nist.gov/vuln/detail/CVE-2025-67746

Code Behaviors & Features

Detect and mitigate CVE-2025-67746 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.2.26, all versions starting from 2.3.0 before 2.9.3

Fixed versions

  • 2.2.26
  • 2.9.3

Solution

Upgrade to versions 2.2.26, 2.9.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

packagist/composer/composer/CVE-2025-67746.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 21 Jan 2026 12:18:04 +0000.