Packages / supports-color / Security
Malicious code in supports-color (npm)
Compromised versions · supports-color
- 10.2.1
Safe
Every other versionincluding the latest, 11.0.0
npm install supports-color@11.0.0Not affected
11.0.0
1 release, latest
Not affected
10.0.0 – 10.2.0
3 releases
Affected
10.2.1
1 release
Safe
10.2.2
1 release
What happens
If one of these versions was installed
- Treat the machines and CI runners that installed it as compromised.
- Rotate the npm, GitHub and cloud tokens they could reach.
- Reinstall from a lockfile that pins a version outside the list.
The package was compromised and malicious code added.
-= Per source details. Do not edit below this line.=-
Source: ghsa-malware (52d7b5f7535b1ec1964ec7f0a7019898a143639f62bf70f6a5e6b9e2ca580c12)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.