Malicious Code Injection in rival-poke92: A Threat to npm Users
Summary
MAL-2025-165080: Malicious code in rival-poke92 (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 package 'rival-poke92' is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized by developers to share and manage code libraries. However, this package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. The malicious nature of this package compromises the integrity of the npm ecosystem and poses significant risks to developers and their applications.
Vulnerability Detail
The vulnerability in 'rival-poke92' originates from its association with a token reward campaign that utilizes autopublish scripts to generate and publish numerous derivative packages with randomized names. This malicious payload modifies the package.json file by removing private flags, altering version numbers, and continuously republishing variants. The result is a polluted npm registry, which can lead to confusion among developers and potential security risks if these packages are inadvertently used in projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rival-poke92
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, avoid using the 'rival-poke92' package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The 'rival-poke92' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be vigilant, remove any affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for rival-poke92 →
FAQ
The main risk is that it contains malicious code that can modify your project's package.json file and flood the npm registry with unwanted packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
You should uninstall the package immediately using 'npm uninstall rival-poke92' and check for any other affected packages.
Yes, consider using other reputable packages that offer similar functionality without the associated risks.
Regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.