Malicious Code Injection in hanafi-mie32-ruro Package
Summary
MAL-2025-103544: Malicious code in hanafi-mie32-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-mie32-ruro package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others, is intended to facilitate various functionalities within applications. However, it has been identified as part of a malicious campaign that aims to exploit npm's package publishing system, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the hanafi-mie32-ruro package. This package is linked to a broader scheme that involves the automatic generation and publication of derivative packages with randomized names. The malicious payload alters the package.json file by removing private flags, changing version numbers, and creating random package names. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for developers to trust the integrity of packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-mie32-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-mie32-ruro package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The hanafi-mie32-ruro package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is essential for developers to be vigilant about the packages they use and to take immediate action to remove any affected packages from their projects.
See every vulnerability recorded for hanafi-mie32-ruro →
FAQ
The hanafi-mie32-ruro package is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
If your application uses the hanafi-mie32-ruro package, it may be at risk of having its package.json modified and could potentially lead to security breaches or instability.
You should uninstall the hanafi-mie32-ruro package immediately using the command npm uninstall hanafi-mie32-ruro.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, you should look for alternative packages that provide similar functionalities but have a good reputation and are actively maintained.