Critical Malicious Code Vulnerability in @voiceflow/husky-config Package
Summary
MAL-2025-191353: Malicious code in @voiceflow/husky-config (npm). Affects @voiceflow/husky-config versions 1.3.1 – 1.3.2. 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/husky-config package is an npm package designed to facilitate configuration management for Husky, a tool that helps developers manage Git hooks. This package is widely used in JavaScript projects to ensure code quality and enforce standards before commits. However, it has recently been compromised, exposing users to significant security risks.
Vulnerability Detail
The vulnerability stems from a malicious code injection attributed to the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal sensitive tokens and credentials from users and publish them to GitHub. Furthermore, it can propagate itself to other npm packages owned by the user and establish persistence through a GitHub action. The malicious payload poses a severe risk, as it may also lead to the destruction of the user's home directory, resulting in data loss and compromised security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @voiceflow/husky-config
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, consider removing the @voiceflow/husky-config package until a secure version is confirmed. You can uninstall it using the command: npm uninstall @voiceflow/husky-config. Additionally, review your GitHub actions and npm packages for any signs of compromise.
Conclusion
The @voiceflow/husky-config package has been compromised by a malicious worm that poses serious security risks to users. Immediate action is required to update the package and mitigate potential damage. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for @voiceflow/husky-config →
FAQ
The malicious code is designed to steal sensitive tokens and credentials and publish them to GitHub, potentially compromising user accounts.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have installed versions 1.3.1 or 1.3.2 of @voiceflow/husky-config, you should uninstall the package and update to the latest secure version immediately.
Failing to address this vulnerability can lead to unauthorized access to your GitHub repositories, loss of sensitive data, and potential damage to your development environment.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and keep your packages updated to the latest secure versions.