Skip to main content
MalwarePublished Updated

express-mocha-test (npm) · Malicious Code

Affects express-mocha-testSource GCVE Database

0

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

Data as of 20 Aug 2026, 16:57 UTC

Classification

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

ProductAffectedFixed in
npmexpress-mocha-testAffected
  • =0.0.1
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.

References

Community reviews

Loading reviews…