Malicious code in mdb-vite (npm)
The npm package 'mdb-vite' contains malicious code that fetches and executes attacker-controlled JavaScript code with full Node.js privileges on any system that imports and runs its default export. The package masquerades as a legitimate SDK related to Polymarket and Vite tooling but instead performs a remote code execution via dynamic evaluation of fetched code. This allows an attacker to deliver arbitrary payloads, steal credentials, maintain persistence, or compromise downstream systems.
AI Analysis
Technical Summary
The 'mdb-vite' npm package's default export function 'getPlugin' performs an obfuscated HTTPS fetch to a remote URL, retrieving JavaScript code from the 'credits' field of the response. This code is then executed dynamically using 'new Function' with full Node.js context, including access to 'require', 'module', 'process', and other globals. This results in arbitrary remote code execution with the privileges of the Node.js process running the package. The package uses misleading metadata and naming to disguise its malicious intent. Any system running this package is effectively fully compromised.
Potential Impact
Systems that install or run the 'mdb-vite' package are subject to arbitrary remote code execution by an attacker, enabling full system compromise. This includes potential credential theft, persistent backdoors, and further compromise of connected systems. The attacker gains the same privileges as the Node.js process executing the package, which can be extensive. The compromise is severe enough that all secrets and keys on the affected system should be considered exposed and rotated immediately.
Mitigation Recommendations
No official patch or fix is available. The package should be immediately removed from all systems. Because the package executes attacker-controlled code with full privileges, any affected system should be considered fully compromised. All secrets, credentials, and keys stored on the system must be rotated from a secure, uncompromised environment. Additional forensic analysis and remediation may be necessary to ensure no persistent backdoors remain.
Malicious code in mdb-vite (npm)
Description
The npm package 'mdb-vite' contains malicious code that fetches and executes attacker-controlled JavaScript code with full Node.js privileges on any system that imports and runs its default export. The package masquerades as a legitimate SDK related to Polymarket and Vite tooling but instead performs a remote code execution via dynamic evaluation of fetched code. This allows an attacker to deliver arbitrary payloads, steal credentials, maintain persistence, or compromise downstream systems.
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 'mdb-vite' npm package's default export function 'getPlugin' performs an obfuscated HTTPS fetch to a remote URL, retrieving JavaScript code from the 'credits' field of the response. This code is then executed dynamically using 'new Function' with full Node.js context, including access to 'require', 'module', 'process', and other globals. This results in arbitrary remote code execution with the privileges of the Node.js process running the package. The package uses misleading metadata and naming to disguise its malicious intent. Any system running this package is effectively fully compromised.
Potential Impact
Systems that install or run the 'mdb-vite' package are subject to arbitrary remote code execution by an attacker, enabling full system compromise. This includes potential credential theft, persistent backdoors, and further compromise of connected systems. The attacker gains the same privileges as the Node.js process executing the package, which can be extensive. The compromise is severe enough that all secrets and keys on the affected system should be considered exposed and rotated immediately.
Mitigation Recommendations
No official patch or fix is available. The package should be immediately removed from all systems. Because the package executes attacker-controlled code with full privileges, any affected system should be considered fully compromised. All secrets, credentials, and keys stored on the system must be rotated from a secure, uncompromised environment. Additional forensic analysis and remediation may be necessary to ensure no persistent backdoors remain.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10144
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-w572-cxjv-46jc"]
- Ecosystems
- ["npm"]
Threat ID: 6a520ee168715ace43917a12
Added to database: 07/11/2026, 09:37:37 UTC
Last enriched: 09/12/2026, 18:31:39 UTC
Last updated: 09/12/2026, 23:26:59 UTC
Views: 64
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.
External Links
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.