Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in mddriver (npm)

0
Critical
Published: 06/15/2026 (06/15/2026, 16:31:14 UTC)
Source: GCVE Database
Product: mddriver

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

npmghsa
mddriver
Affected versions
=1.8.5=1.8.4=1.8.2=1.8.6=1.8.3=1.8.1

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

AILast updated: 07/09/2026, 10:05:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses