chai-presentation (npm) · Malicious Code
Affects chai-presentationSource GCVE Database
Malicious package : remove chai-presentation 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-6994
What to do
Remove chai-presentation 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-presentation | 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-presentation' versions 0.0.1, 0.0.2, 0.0.3, and 0.0.4 contains malicious code that executes remote JavaScript code during import. It fetches code from external URLs and executes it with full Node.js privileges, enabling arbitrary code execution on the host machine. The package impersonates a chai plugin but includes unrelated dependencies and misleading documentation to lure victims. No official patch or fix is currently available.