Critical Malicious Code Vulnerability in webpack-loader-httpfile Package
Summary
MAL-2025-191154: Malicious code in webpack-loader-httpfile (npm). Affects webpack-loader-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
webpack-loader-httpfile is an npm package designed to facilitate the loading of HTTP files in webpack projects. It provides developers with a streamlined way to manage file imports over HTTP, enhancing the efficiency of web application development. However, this package has been identified as containing malicious code, posing severe security risks to any system utilizing it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the webpack-loader-httpfile package. Any system running this package is considered fully compromised, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious code can lead to severe ramifications, including data breaches and complete control of the affected system by external entities. Users are advised to treat any system with this package installed as compromised and to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall webpack-loader-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
Currently, there are no effective workarounds for this vulnerability other than removing the package entirely. It is crucial to ensure that your project does not rely on webpack-loader-httpfile for any functionality.
Conclusion
The webpack-loader-httpfile package contains malicious code that poses significant security risks. Users must act swiftly to remove the package and secure their systems. Regular monitoring for vulnerabilities, such as through Vulert, can help maintain the security of your applications.
See every vulnerability recorded for webpack-loader-httpfile →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without requiring any signup.
No, there is currently no patched version available. The only course of action is to remove the package.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete control of your system by malicious actors.
It is highly discouraged to continue using this package due to the inherent risks. Removal is the safest option.