mddriver (npm) · Malicious Code
Affects mddriverSource GCVE Database
Malicious package : remove mddriver and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 10:05 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmmddriver | 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 '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
- npmjs.com/package/mddriver/v/1.8.4 (opens in a new tab)
- npmjs.com/package/mddriver/v/1.8.2 (opens in a new tab)
- npmjs.com/package/mddriver/v/1.8.5 (opens in a new tab)
- npmjs.com/package/mddriver/v/1.8.6 (opens in a new tab)
- npmjs.com/package/mddriver/v/1.8.3 (opens in a new tab)
- github.com/advisories/GHSA-75f4-4w6r-vvch (opens in a new tab)
- npmjs.com/package/mddriver/v/1.8.1 (opens in a new tab)