Malicious Code Injection in hanafi-serimuka59-ruro Package: A Threat to npm Users
Summary
MAL-2025-103560: Malicious code in hanafi-serimuka59-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-serimuka59-ruro package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of such packages is to manipulate developer reputation scores through automated publishing scripts, which can lead to significant security risks for users relying on npm for their projects.
Vulnerability Detail
The vulnerability in the hanafi-serimuka59-ruro package stems from its malicious code designed to alter the package.json file. This code removes private flags, modifies version numbers, and generates random package names, effectively polluting the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of derivative packages to inflate developer reputation scores. The ramifications of this vulnerability include potential exposure of sensitive data, unauthorized access to systems, and degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-serimuka59-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 workaround, users can temporarily disable the automatic publishing scripts by modifying their package.json file to restrict the execution of scripts during installation. This can be done by adding the following line to the scripts section: "prepublishOnly": "echo 'Publishing disabled'". However, the best course of action is to remove the malicious package entirely.
Conclusion
The hanafi-serimuka59-ruro package poses a significant threat to users within the npm ecosystem due to its malicious code designed to manipulate package metadata. Immediate action is required to remove this package and safeguard your projects. Regular monitoring and updates are essential to maintain security in open-source software development.
See every vulnerability recorded for hanafi-serimuka59-ruro →
FAQ
The hanafi-serimuka59-ruro package is an npm package associated with a malicious campaign aimed at inflating developer reputation scores through automated publishing.
This vulnerability can lead to unauthorized modifications in your project's package.json file, potentially exposing sensitive data and compromising the integrity of your application.
You should immediately remove the hanafi-serimuka59-ruro package from your project and check for any unauthorized changes in your package.json file.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.