Malicious Code Injection in erick-rojak25-ruro Package: A Threat to npm Users
Summary
MAL-2025-102181: Malicious code in erick-rojak25-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 erick-rojak25-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 this package is to serve as a conduit for autopublishing scripts that generate derivative packages, potentially compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the erick-rojak25-ruro package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which aims to inflate developer reputation scores through automated scripts. The ramifications include pollution of the npm registry and potential exploitation of developers who unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall erick-rojak25-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, consider removing the erick-rojak25-ruro package from your project until a secure version is released. You can do this by executing the command: npm uninstall erick-rojak25-ruro.
Conclusion
The erick-rojak25-ruro package poses a significant threat due to its malicious code designed to manipulate npm packages. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their projects.
See every vulnerability recorded for erick-rojak25-ruro →
FAQ
The erick-rojak25-ruro package is an npm package that has been identified as malicious, associated with the tea.xyz token reward campaign.
This vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project if the malicious package is installed.
If you have installed the erick-rojak25-ruro package, it is recommended to uninstall it immediately and check for any updates or patches.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground without any signup.
To prevent future vulnerabilities, regularly update your packages, monitor your dependencies, and utilize tools like Vulert for real-time alerts.