chai-as-chain-v2 (npm) · Malicious Code
Affects chai-as-chain-v2Source GCVE Database
Malicious package : remove chai-as-chain-v2 and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 08:53 UTC
Malicious package
Published to npm · OSV MAL-2026-2886
What to do
Remove chai-as-chain-v2 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-chain-v2 | 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-chain-v2 version 1.1.1 contains malicious code that downloads and executes a command-and-control (C2) dropper from a remote URL. This behavior is similar to previously observed malware in related packages. No official patch or remediation guidance is provided.