Malicious Code Injection in rival-poke93: A Threat to npm Users
Summary
MAL-2025-165081: Malicious code in rival-poke93 (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
rival-poke93 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to exploit the npm ecosystem by generating and publishing derivative packages with randomized names. Its primary function appears to be related to the tea.xyz token reward system, which incentivizes developers to inflate their reputation scores through the creation of numerous fake packages.
Vulnerability Detail
The vulnerability in rival-poke93 stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of the ecosystem. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which has been flooding npm with similar malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rival-poke93
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 rival-poke93 by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will help avoid any accidental installations of this malicious package.
Conclusion
The rival-poke93 package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and pollute the npm registry. Immediate action is required to remove this package and safeguard your projects from potential risks. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for rival-poke93 →
FAQ
rival-poke93 is an npm package identified as part of a malicious campaign that generates fake packages to inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your project and exposing it to further risks.
You should immediately uninstall rival-poke93 from your project to mitigate any risks associated with this malicious package.
Yes, 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 without any signup at the Vulert playground.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about known vulnerabilities in the npm ecosystem.