Malicious Code Injection in rifqi-dodol22-ruro Package: A Threat to npm Ecosystem
Summary
MAL-2025-108069: Malicious code in rifqi-dodol22-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 rifqi-dodol22-ruro package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package, like others in the campaign, is designed to manipulate npm's publishing system, potentially compromising the integrity of projects that depend on it.
Vulnerability Detail
The vulnerability in the rifqi-dodol22-ruro package stems from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to the continuous republishing of variants that pollute the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation and distribution of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rifqi-dodol22-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, you can prevent the installation of this malicious package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include rifqi-dodol22-ruro in its dependencies. You can also use the following command to uninstall it: npm uninstall rifqi-dodol22-ruro.
Conclusion
The rifqi-dodol22-ruro package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package publishing. It is essential to remove this package from your projects and monitor for vulnerabilities using tools like Vulert to ensure the security of your applications.
See every vulnerability recorded for rifqi-dodol22-ruro →
FAQ
The rifqi-dodol22-ruro package is an npm package associated with the tea.xyz token reward campaign, known for flooding the npm registry with malicious packages.
This vulnerability can compromise the integrity of your project by introducing malicious code that alters package configurations and potentially leads to further exploitation.
You should immediately uninstall the rifqi-dodol22-ruro package from your project to mitigate any risks associated with its malicious behavior.
Yes, you can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.