chai-chain-dom (npm) · Malicious Code
Affects chai-chain-domSource GCVE Database
Malicious package : remove chai-chain-dom and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 10:10 UTC
Malicious package
Published to npm · OSV MAL-2026-6919
What to do
Remove chai-chain-dom 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-chain-dom | 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-chain-dom versions 1.3.7, 1.3.8, and 1.3.9 impersonates the pino logger but acts as a remote code loader. When used, it spawns a detached subprocess that fetches and executes attacker-controlled JavaScript from a public paste service, granting full Node.js capabilities to the attacker. This allows arbitrary code execution with full system access. Any system with this package installed should be considered fully compromised, and all secrets should be rotated from a clean environment.