Critical Malicious Code Vulnerability in vite-meta-plugin
Summary
MAL-2025-5734: Malicious code in vite-meta-plugin (npm). Affects vite-meta-plugin 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
vite-meta-plugin is an npm package designed to enhance the functionality of Vite, a modern build tool for JavaScript applications. This plugin allows developers to manage metadata in their projects efficiently. However, it has been found to contain malicious code that compromises the security of any system where it is installed, making it a significant risk for developers and organizations using this package.
Vulnerability Detail
The vulnerability originates from the inclusion of embedded malicious code within the vite-meta-plugin package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code poses severe risks, as it can lead to data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vite-meta-plugin
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 workaround, you can temporarily disable the usage of vite-meta-plugin in your project until a secure version is released. This can be done by removing it from your package.json dependencies and running npm install to update your project.
Conclusion
The vite-meta-plugin package has been identified to contain malicious code that poses a significant security risk. It is essential for developers to remove this package immediately and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying and managing vulnerabilities in your projects effectively.
See every vulnerability recorded for vite-meta-plugin →
FAQ
Immediately remove the vite-meta-plugin package from your project and consider rotating any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Currently, there is no patch available. It is recommended to remove the package until a secure version is released.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Vulert uses package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, providing an easy way to stay informed.