Skip to main content
MalwarePublished

chalk-util (npm) · Malicious Code

Affects chalk-utilSource GCVE Database

0

Malicious package : remove chalk-util and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:48 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14168

What to do

Remove chalk-util 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
npmchalk-utilAffected
  • =1.0.0
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 chalk-util@1.0.0 is a typosquatting malicious package that executes harmful code during installation. Its postinstall script decodes and downloads a binary from an attacker-controlled URL, saving it as main.exe on Windows or executing it via PowerShell on Linux. It also sends a beacon with platform information to a hardcoded IP address over unencrypted HTTP. The package exports an empty object, with all malicious activity triggered by the postinstall lifecycle hook.

References

Community reviews

Loading reviews…