Critical Malicious Code Vulnerability in @voiceflow/nestjs-rate-limit Package
Summary
MAL-2025-191359: Malicious code in @voiceflow/nestjs-rate-limit (npm). Affects @voiceflow/nestjs-rate-limit versions 1.3.2 – 1.3.3. 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 @voiceflow/nestjs-rate-limit package is a Node.js library designed to provide rate limiting functionality for NestJS applications. It helps developers manage the number of requests a user can make to an API, thereby preventing abuse and ensuring fair usage. However, this package has been compromised, exposing users to significant security risks.
Vulnerability Detail
The vulnerability stems from a malicious code injection by the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal tokens and credentials from users and publish them to GitHub. Additionally, it can propagate itself to other NPM packages owned by the user and establish persistence through GitHub actions. The malicious payload may also lead to the destruction of the user's home directory, posing severe risks to data integrity and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @voiceflow/nestjs-rate-limit
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, you can remove the @voiceflow/nestjs-rate-limit package from your project until a secure version is released. You can do this by executing the following command: npm uninstall @voiceflow/nestjs-rate-limit.
Conclusion
The @voiceflow/nestjs-rate-limit package has been compromised by a malicious worm, posing serious security risks to users. It is essential to update the package to a secure version or remove it until a fix is available. Utilizing tools like Vulert can help monitor for vulnerabilities in your applications.
See every vulnerability recorded for @voiceflow/nestjs-rate-limit →
FAQ
The vulnerability involves malicious code that steals sensitive information and can propagate to other packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.
As a temporary measure, consider uninstalling the package until a secure version is available.
Yes, if the package is used within your application, it can compromise the security of your entire system.
Detailed information can be found in the vulnerability report and on platforms like GitHub and Vulert.