Malicious Code Injection in mxdriver Package: A Security Threat
Summary
MAL-2026-16383: Malicious code in mxdriver (npm). Affects mxdriver versions 0.0.1 – 0.0.2. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The mxdriver package is an npm library designed to serve as a wrapper for Google APIs. It is intended to facilitate interactions with various Google services. However, the package has been found to contain obfuscated scripts that can execute malicious actions during installation, posing significant security risks to users.
Vulnerability Detail
The mxdriver package version 0.0.2 includes preinstall and postinstall scripts that are obfuscated and designed to fetch remote content from untrusted sources. These scripts download executable files from an anonymous third-party image host and execute them on the user's machine. This behavior is indicative of a classic install-time dropper pattern, where the payload can be altered by the entity controlling the remote source, leading to potential malware installation without the user's consent.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mxdriver
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, avoid installing the mxdriver package until a secure version is released. If you have already installed it, consider removing it with the command: npm uninstall mxdriver.
Conclusion
The mxdriver package has been identified as containing malicious code that poses a significant security threat to users. It is essential to remain vigilant, update to secure versions, and utilize tools like Vulert to monitor for vulnerabilities in your applications.
See every vulnerability recorded for mxdriver →
FAQ
The mxdriver package is an npm library that acts as a wrapper for Google APIs, allowing developers to interact with Google services more easily.
The vulnerability manifests through obfuscated scripts that execute during the installation process, fetching and executing malicious files from untrusted sources.
The risks include unauthorized execution of malicious code, potential data breaches, and compromise of the user's system integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the vulnerable version, it is crucial to uninstall it immediately using npm uninstall mxdriver and monitor for any updates or patches.