Critical Malicious Code Vulnerability in vite-plugin-httpfile Package
Summary
MAL-2025-190787: Malicious code in vite-plugin-httpfile (npm). Affects vite-plugin-httpfile versions 0.2.1. 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-plugin-httpfile is an npm package designed to facilitate HTTP file handling in JavaScript applications. It allows developers to easily manage file uploads and downloads through HTTP requests. However, this package has been compromised, leading to serious security concerns for any application utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the vite-plugin-httpfile package. This code can fully compromise any computer that has the package installed or running, potentially allowing unauthorized access to sensitive information such as secrets and keys. The origin of this vulnerability is linked to the package being flagged as malicious by security researchers, indicating that it contains code that is harmful in nature.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vite-plugin-httpfile
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
There are no effective workarounds for this vulnerability other than removing the package entirely. It is recommended to avoid using vite-plugin-httpfile until a secure alternative is identified.
Conclusion
The vite-plugin-httpfile package has been identified as containing malicious code that poses a significant security risk. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for vite-plugin-httpfile →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
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.
Currently, there is no patched version available for vite-plugin-httpfile. The best course of action is to remove the package.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete compromise of your system.
It is highly discouraged to use vite-plugin-httpfile due to the embedded malicious code. Consider looking for alternative packages.