VDB
Sign up
LOW1.2

GHSA-59pp-r3rg-353g

Composer is vulnerable to ANSI sequence injection

Quick fix

GHSA-59pp-r3rg-353g — composer/composer: upgrade to the fixed version with the command below.

composer require composer/composer:^2.2.26

Details

### 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/composer/composer
Introduced in: 2.0.0Fixed in: 2.2.26
Fixcomposer require composer/composer:^2.2.26
Packagist/composer/composer
Introduced in: 2.3.0Fixed in: 2.9.3
Fixcomposer require composer/composer:^2.9.3

References