Critical Malicious Code Vulnerability in @voiceflow/api-sdk: Token Theft and System Compromise
Summary
MAL-2025-191333: Malicious code in @voiceflow/api-sdk (npm). Affects @voiceflow/api-sdk versions 3.28.58 – 3.28.59. 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/api-sdk is a popular npm package used for building voice applications. It provides developers with tools to integrate voice capabilities into their applications seamlessly. However, this package has recently been compromised, exposing users to significant security risks due to malicious code embedded within it.
Vulnerability Detail
The vulnerability originates from the Sha1-Hulud: The Second Coming NPM worm, which has compromised the @voiceflow/api-sdk package. This malicious payload is designed to steal tokens and credentials from users, subsequently publishing them to GitHub. Additionally, the worm can propagate itself to other npm packages owned by the user and establish persistence through a GitHub action. There is also a risk that it may destroy the user's home directory, leading to severe data loss.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @voiceflow/api-sdk
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, users are advised to remove the @voiceflow/api-sdk package from their projects until a secure version is confirmed. You can do this by running:
npm uninstall @voiceflow/api-sdk
This will prevent the malicious code from executing while you seek a secure alternative or wait for an official patch.
Conclusion
The @voiceflow/api-sdk package has been compromised by a malicious worm that poses serious security risks, including token theft and system compromise. It is crucial for users to update their packages immediately and consider using tools like Vulert to monitor for vulnerabilities in the future.
See every vulnerability recorded for @voiceflow/api-sdk →
FAQ
The malicious code is designed to steal sensitive tokens and credentials from users and can also propagate itself to other npm packages owned by the user.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.
If you suspect that you have been compromised, immediately revoke any exposed tokens and credentials, and update your packages to secure versions.
Regularly monitor your dependencies using tools like Vulert, and keep your packages updated to the latest versions to mitigate risks.
Failure to address this vulnerability could lead to unauthorized access to your accounts, data loss, and potential damage to your system.