Malicious Code Injection in hanafi-oncom39-ruro Package - npm Vulnerability
Summary
MAL-2025-103552: Malicious code in hanafi-oncom39-ruro (npm). Affected versions are not published. 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 hanafi-oncom39-ruro package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others in the ecosystem, is intended to facilitate various functionalities for developers. However, it has been identified as part of a malicious campaign that exploits npm's publishing features to inflate developer reputation scores through the automatic generation of derivative packages.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign associated with the tea.xyz token reward initiative. It contains scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate numerous derivative packages with randomized names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these malicious packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-oncom39-ruro
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 avoid using the hanafi-oncom39-ruro package and any other packages that are part of the tea.xyz campaign. Regularly audit your dependencies to ensure that no malicious packages are included.
Conclusion
The hanafi-oncom39-ruro package poses a significant risk due to its malicious code designed to manipulate npm's publishing system. It is essential for developers to be vigilant about the packages they use and to employ tools like Vulert to safeguard their applications against such vulnerabilities.
See every vulnerability recorded for hanafi-oncom39-ruro →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
If you have this package installed, it may lead to the installation of additional malicious packages, compromising your application's security.
You should uninstall the package immediately and audit your project for any other potentially malicious dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.