Skip to main content
MalwarePublished

express-chai (npm) · Malicious Code

Affects express-chaiSource GCVE Database

0

Malicious package : remove express-chai and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 06:12 UTC

Classification

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

ProductAffectedFixed in
npmexpress-chaiAffected
  • =3.7.9
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.

References

Community reviews

Loading reviews…