chai-as-disarmed (npm) · Malicious Code
Affects chai-as-disarmedSource GCVE Database
Malicious package : remove chai-as-disarmed and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 10:21 UTC
Malicious package
Published to npm · OSV MAL-2026-10042
What to do
Remove chai-as-disarmed 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 |
|---|---|---|
| npmchai-as-disarmed | 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 'chai-as-disarmed' version 3.2.3 is a malicious typosquat of 'chai-as-promised' that impersonates 'pino' in its README and keywords to trick users into installing it. Upon requiring the package, it spawns a detached process that fetches a remote payload from a mutable third-party JSON storage service and executes it with full Node.js require access, enabling arbitrary code execution. This behavior is unrelated to the advertised functionality and allows the attacker to change the payload at any time without republishing the package.