Critical Malicious Code Vulnerability in @huntersofbook/i18n Package
Summary
MAL-2025-191232: Malicious code in @huntersofbook/i18n (npm). Affects @huntersofbook/i18n versions 0.8.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/i18n package is an npm library designed for internationalization, allowing developers to manage translations and localization in their applications. It is widely used in various projects to facilitate multi-language support. However, this package has been compromised, making it susceptible to a severe security threat that can affect users' credentials and system integrity.
Vulnerability Detail
The vulnerability originates from the Sha1-Hulud: The Second Coming NPM worm, which has infected the @huntersofbook/i18n package. This malicious code is capable of stealing tokens and credentials, publishing them to GitHub, and propagating itself to other npm packages owned by the user. Additionally, it can establish persistence through a GitHub action and may even destroy the user's home directory, posing a significant risk to both personal and organizational data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @huntersofbook/i18n
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 can remove the @huntersofbook/i18n package from their project until a secure version is confirmed. This can be done using the command: npm uninstall @huntersofbook/i18n. Additionally, consider using alternative packages for internationalization that are not affected by this vulnerability.
Conclusion
The @huntersofbook/i18n package has been compromised by a malicious worm that poses serious security risks. Users are urged to update their packages immediately and consider using alternative solutions until the issue is fully resolved. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for @huntersofbook/i18n →
FAQ
The malicious code is designed to steal sensitive information such as tokens and credentials, and it can also propagate itself to other npm packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the compromised version, you should uninstall it immediately and update to the latest patched version of the package.
Yes, the malicious code has the potential to destroy your home directory, which can lead to significant data loss and system compromise.
Regularly monitor your dependencies using tools like Vulert, keep your packages updated, and review package sources before installation to mitigate risks.