Critical Malicious Code Vulnerability in multer-cli Package
Summary
MAL-2025-191549: Malicious code in multer-cli (npm). Affected versions are not published. 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
multer-cli is a command-line interface for the multer middleware, which is used in Node.js applications for handling multipart/form-data, primarily for file uploads. The package simplifies the process of using multer in various scenarios, making it easier for developers to manage file uploads in their applications. However, it has recently been discovered that this package contains malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the multer-cli package, which has been identified as a serious threat. Any system running this package is considered fully compromised, allowing unauthorized access to sensitive information, including secrets and keys stored on the affected computer. The malicious code can lead to data breaches and potential exploitation by external entities, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall multer-cli
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 to mitigate the risks posed by this vulnerability other than removing the package entirely. Users should ensure that they do not rely on multer-cli until a secure version is released.
Conclusion
The discovery of malicious code within the multer-cli package poses a significant security risk to any system using it. Immediate action is required to uninstall the package and secure sensitive information. Users should remain vigilant and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for multer-cli →
FAQ
You should immediately uninstall the multer-cli package and rotate any sensitive information stored on your system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Currently, there is no patched version available for the multer-cli package. Users are advised to remove it entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and exploitation by malicious actors.
Vulert monitors and alerts users in real-time for open-source vulnerabilities using just the package-lock.json file, providing an easy way to stay informed about potential risks.