assertion-utils-js (npm) · Malicious Code
Affects assertion-utils-jsSource GCVE Database
Malicious package : remove assertion-utils-js and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:55 UTC
Malicious package
Published to npm · OSV MAL-2026-10612
What to do
Remove assertion-utils-js 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 |
|---|---|---|
| npmassertion-utils-js | 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 assertion-utils-js is a malicious typosquat of the legitimate chai package. When required, it spawns a detached Node.js child process that runs heavily obfuscated code which fetches and executes remote code with full Node module privileges. This behavior effectively compromises any system running the package. The package version 2.4.3 is affected. Removal of the package does not guarantee full remediation as the system may already be fully compromised.