chalk-core (npm) · Malicious Code
Affects chalk-coreSource GCVE Database
Malicious package : remove chalk-core and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:49 UTC
Malicious package
Published to npm · OSV MAL-2026-14165
What to do
Remove chalk-core 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
| Product | Affected | Fixed in |
|---|---|---|
| npmchalk-core | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The chalk-core npm package version 1.0.0 is a typosquatting malicious package that does not provide any chalk functionality. Instead, its postinstall script executes automatically upon installation, decoding a hidden URL to download and run an unsigned executable on Windows systems. It also performs platform tracking by sending data to a remote server and uses advanced techniques to execute payloads in Windows Subsystem for Linux (WSL) environments. This package poses a significant risk due to its silent execution of potentially harmful code without verification.