Malicious Code Injection in hanafi-mieayam23-ruro Package
Summary
MAL-2025-103545: Malicious code in hanafi-mieayam23-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-mieayam23-ruro package is part of the npm ecosystem, often used for various JavaScript applications. However, it has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system. This package includes scripts that automatically generate and publish derivative packages with altered metadata, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the hanafi-mieayam23-ruro package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. The malicious scripts (auto.js, autopublish.js, etc.) continuously republish these variants, compromising the integrity of the npm registry and potentially affecting other developers who rely on this ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-mieayam23-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 measure, you can avoid using the hanafi-mieayam23-ruro package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities.
Conclusion
The hanafi-mieayam23-ruro package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with harmful variants. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for hanafi-mieayam23-ruro →
FAQ
The hanafi-mieayam23-ruro package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The malicious code can alter your package.json file, remove private flags, and continuously republish variants, which can lead to dependency issues and pollution of the npm registry.
You should uninstall the package immediately using 'npm uninstall hanafi-mieayam23-ruro' and look for alternative packages.
You can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.