express-chai (npm) · Malicious Code
Affects express-chaiSource GCVE Database
Malicious package : remove express-chai and rotate any secrets on hosts that installed it.
Data as of 7 Aug 2026, 06:12 UTC
Malicious package
Published to npm · OSV MAL-2026-13446
What to do
Remove express-chai 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 |
|---|---|---|
| npmexpress-chai | 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 express-chai npm package version 3.7.9 contains malicious code that impersonates an Express logger middleware. It fetches a remote JSON payload from a base64-obfuscated URL and executes code from the payload with full access to the Node.js require function and application context, enabling arbitrary code execution during middleware setup.