express-mocha-test (npm) · Malicious Code
Affects express-mocha-testSource GCVE Database
Malicious package : remove express-mocha-test and rotate any secrets on hosts that installed it.
Data as of 20 Aug 2026, 16:57 UTC
Malicious package
Published to npm · OSV MAL-2026-6568
What to do
Remove express-mocha-test 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-mocha-test | 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 express-mocha-test version 0.0.1 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall lifecycle hook to fetch code from an attacker-controlled ngrok-free.app tunnel and evaluates it directly, leading to remote code execution on any machine running npm install for this package. The package metadata impersonates known maintainers to deceive users. This results in full system compromise, requiring immediate secret and key rotation and package removal.