vitest-chalk-pro (npm) · Malicious Code
Affects vitest-chalk-proSource GCVE Database
Malicious package : remove vitest-chalk-pro and rotate any secrets on hosts that installed it.
Data as of 9 Sep 2026, 21:23 UTC
Malicious package
Published to npm · OSV MAL-2026-15563
What to do
Remove vitest-chalk-pro 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 |
|---|---|---|
| npmvitest-chalk-pro | 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 vitest-chalk-pro version 10.0.7 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall hook to spawn a detached, silent child process that fetches and executes code from a remote, mutable source. The package masquerades as a utility related to vitest and chalk but is actually a disguised dropper resembling nodemailer. This behavior allows arbitrary code execution on the installer's machine at every npm install.