chalk-es (npm) · Malicious Code
Affects chalk-esSource GCVE Database
Malicious package : remove chalk-es 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-14166
What to do
Remove chalk-es 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-es | 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 npm package 'chalk-es' version 1.0.0 is a malicious package that mimics the legitimate 'chalk' package but contains no legitimate library code. Instead, it executes a post-install script that decodes and downloads a Windows executable to the temporary directory and runs it detached. On Windows Subsystem for Linux (WSL) or Linux hosts, it executes a decoded bridge command to run the same payload on the underlying Windows system. The package also sends a beacon with platform information to a hardcoded IP address, indicating installation and tracking of victims. The malicious behavior is obfuscated using XOR encoding to hide URLs and commands.