Critical Malicious Code Vulnerability in @huntersofbook/auth-vue Package
Summary
MAL-2025-191228: Malicious code in @huntersofbook/auth-vue (npm). Affects @huntersofbook/auth-vue versions 0.4.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 @huntersofbook/auth-vue package is a JavaScript library designed for authentication in Vue.js applications. It provides developers with tools to manage user authentication and authorization seamlessly. However, this package has been compromised, making it susceptible to a significant security threat that can lead to unauthorized access and data breaches.
Vulnerability Detail
The vulnerability originates from a compromise by the Sha1-Hulud: The Second Coming NPM worm. This malicious code is designed to steal tokens and credentials from users, publishing them to GitHub. The worm can propagate itself to other NPM packages owned by the user and establish persistence through a GitHub action. Additionally, it poses a risk of destroying the user's home directory, leading to potential data loss and system instability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @huntersofbook/auth-vue
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 @huntersofbook/auth-vue package from your project using the command: npm uninstall @huntersofbook/auth-vue. This will prevent the malicious code from executing while you await a secure update.
Conclusion
The @huntersofbook/auth-vue package has been compromised by a malicious worm that poses serious security risks, including credential theft and potential data loss. It is imperative to take immediate action by updating or removing the package to safeguard your application.
See every vulnerability recorded for @huntersofbook/auth-vue →
FAQ
The vulnerability involves malicious code that steals user tokens and credentials and can also destroy the user's home directory.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without requiring any signup.
If an update is not possible, consider uninstalling the package to mitigate the risk until a secure version is available.
Yes, the malicious code can potentially destroy the user's home directory, leading to data loss.
Detailed information can be found in the vulnerability report on GitHub and through security advisories related to the @huntersofbook/auth-vue package.