Malicious Code Injection in hadianto-donat80-ruro Package
Summary
MAL-2025-103480: Malicious code in hadianto-donat80-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 hadianto-donat80-ruro package is part of the npm ecosystem, primarily used for various JavaScript applications. It has been identified as part of a larger campaign that aims to exploit npm's package management system. This package, like others in the campaign, is designed to inflate developer reputation scores through the automatic generation and publication of derivative packages with randomized names.
Vulnerability Detail
The vulnerability stems from malicious code embedded in the hadianto-donat80-ruro package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising the integrity of dependent applications. The origin of this issue is linked to the tea.xyz token reward campaign, which has flooded npm with similar malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hadianto-donat80-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, you can prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include hadianto-donat80-ruro in its dependencies. You can also use the following command to uninstall it: npm uninstall hadianto-donat80-ruro.
Conclusion
The hadianto-donat80-ruro package poses a significant risk due to its malicious code designed to manipulate npm's package management system. It is crucial to remove this package and monitor your dependencies to maintain the integrity of your applications.
See every vulnerability recorded for hadianto-donat80-ruro →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The malicious code can modify your package.json file and republish variants, potentially compromising your application's integrity.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should uninstall the hadianto-donat80-ruro package immediately and monitor your dependencies for any other malicious packages.
Utilizing tools like Vulert can help monitor and alert you in real-time for open-source vulnerabilities in your software.