Skip to main content
MalwarePublished Updated

mddriver (npm) · Malicious Code

Affects mddriverSource GCVE Database

0

Malicious package : remove mddriver and rotate any secrets on hosts that installed it.

Data as of 9 Jul 2026, 10:05 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5791

What to do

Remove mddriver 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
npmmddriverAffected
  • 1.8.1 – 1.8.6
6 affected builds
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 'mddriver' is a malicious typosquatting package that executes arbitrary JavaScript code fetched dynamically from an anonymous, mutable external source. It masquerades as a MongoDB connection driver but contains code that runs any JavaScript served by the attacker at runtime, leading to full system compromise. The affected versions are 1.8.1 through 1.8.6. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated immediately. Removal of the package alone does not guarantee eradication of all malicious components.

References

Community reviews

Loading reviews…