chai-plus (npm) · Malicious Code
Affects chai-plusSource GCVE Database
Malicious package : remove chai-plus and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 17:55 UTC
Malicious package
Published to npm · OSV MAL-2026-14533
What to do
Remove chai-plus 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-plus | 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-plus' contains malicious code that automatically executes upon requiring the module. It runs a hidden command to globally install and execute a malicious package from a dynamic DNS domain over plain HTTP, unrelated to its advertised functionality. This behavior compromises any system where the package is installed, potentially giving attackers full control. Removal of the package does not guarantee complete remediation due to possible persistent backdoors. The package name mimics a popular library, increasing the risk of inadvertent installation.
References
- npmjs.com/package/chai-plus/v/6.2.5 (opens in a new tab)
- npmjs.com/package/chai-plus/v/6.2.3 (opens in a new tab)
- npmjs.com/package/chai-plus/v/6.2.4 (opens in a new tab)
- github.com/advisories/GHSA-2r27-f59g-4hcx (opens in a new tab)
- npmjs.com/package/chai-plus/v/6.3.0 (opens in a new tab)
- npmjs.com/package/chai-plus/v/7.0.0 (opens in a new tab)