Skip to main content
MalwarePublished Updated

color-style-utils (npm) · Malicious Code

Affects color-style-utilsSource GCVE Database

0

Malicious package : remove color-style-utils and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 09:37 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4534

What to do

Remove color-style-utils from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmcolor-style-utilsAffected
  • =1.0.9
  • =1.0.8
  • =1.0.3
  • =1.0.7
  • =1.0.4
  • =1.0.5
  • =1.0.6
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package color-style-utils contains malicious code that executes during installation lifecycle hooks. The postinstall.js script harvests sensitive credentials and configuration files from the host, including SSH keys, cloud service credentials, crypto wallets, and tokens for various services. It also collects detailed host fingerprinting information and exfiltrates all gathered data to an attacker-controlled server. The package exhibits suspicious behaviors such as a self-referential dependency and shipping an undeclared file with a non-ASCII suffix, consistent with name-squatting and decoy tactics.

References

Community reviews

Loading reviews…