Malicious code in mddriver (npm)
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.
AI Analysis
Technical Summary
The 'mddriver' npm package versions 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, and 1.8.6 contain malicious code that, upon requiring the package, executes an immediately invoked function expression (IIFE) that fetches base64-encoded JSON from an anonymous paste host. The content field of the fetched JSON is executed via a Function constructor, allowing arbitrary code execution controlled by the attacker. The package is a typosquat targeting developers searching for legitimate MongoDB drivers, with the shipped code being a copy of Node's built-in 'path' module plus the malicious dropper. This results in full compromise of any system running the package.
Potential Impact
Any system with the affected 'mddriver' package installed or running is fully compromised, as the package executes arbitrary code fetched from an attacker-controlled source. This can lead to unauthorized access, data theft, and persistent malicious control. All secrets and keys on the compromised system should be considered exposed and must be rotated from a secure environment. Removal of the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'mddriver' package is required. All secrets, credentials, and keys stored on the compromised system must be rotated from a different, secure computer. Due to the high risk of full system compromise, consider rebuilding the affected systems from trusted backups or reinstalling the operating system to ensure complete eradication of malicious code.
Malicious code in mddriver (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'mddriver' npm package versions 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, and 1.8.6 contain malicious code that, upon requiring the package, executes an immediately invoked function expression (IIFE) that fetches base64-encoded JSON from an anonymous paste host. The content field of the fetched JSON is executed via a Function constructor, allowing arbitrary code execution controlled by the attacker. The package is a typosquat targeting developers searching for legitimate MongoDB drivers, with the shipped code being a copy of Node's built-in 'path' module plus the malicious dropper. This results in full compromise of any system running the package.
Potential Impact
Any system with the affected 'mddriver' package installed or running is fully compromised, as the package executes arbitrary code fetched from an attacker-controlled source. This can lead to unauthorized access, data theft, and persistent malicious control. All secrets and keys on the compromised system should be considered exposed and must be rotated from a secure environment. Removal of the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'mddriver' package is required. All secrets, credentials, and keys stored on the compromised system must be rotated from a different, secure computer. Due to the high risk of full system compromise, consider rebuilding the affected systems from trusted backups or reinstalling the operating system to ensure complete eradication of malicious code.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5791
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-75f4-4w6r-vvch"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c6768715ace4315a429
Added to database: 07/09/2026, 09:39:51 UTC
Last enriched: 07/09/2026, 10:05:45 UTC
Last updated: 07/31/2026, 04:10:11 UTC
Views: 40
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.