Malicious Code Injection in rival-poke77: A Threat to npm Packages
Summary
MAL-2025-165063: Malicious code in rival-poke77 (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-poke77' 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 that can harm developers' reputations and the integrity of the registry itself.
Vulnerability Detail
The vulnerability in 'rival-poke77' originates from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to inflate developer reputation scores for token rewards, leading to potential abuse of the npm registry. The malicious scripts included in this package can continuously republish variants, polluting the registry and making it difficult for legitimate packages to be discovered.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rival-poke77
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, you can avoid using the 'rival-poke77' package and replace it with a trusted alternative. Always verify the integrity of packages before installation.
Conclusion
The 'rival-poke77' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to remain vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications and maintain the integrity of the npm registry.
See every vulnerability recorded for rival-poke77 →
FAQ
The main issue is that it contains malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using 'npm uninstall rival-poke77' and review your dependencies for any other potentially malicious packages.
Yes, the impacts include pollution of the npm registry, potential reputation damage for developers, and increased difficulty in finding legitimate packages.
Regularly audit your dependencies, use trusted sources for packages, and stay informed about known vulnerabilities in the npm ecosystem.