Malicious Code Injection in rival-poke8: A Threat to npm Packages
Summary
MAL-2025-165066: Malicious code in rival-poke8 (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-poke8 is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate the distribution of tokens through a network of packages. However, this package has been identified as containing malicious code that alters its own metadata and publishes numerous derivative packages, which can mislead developers and inflate reputation scores.
Vulnerability Detail
The vulnerability in rival-poke8 originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rival-poke8
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, avoid using rival-poke8 and any packages that may have been published as derivatives of it. Regularly audit your package dependencies using tools like npm audit to identify and mitigate potential vulnerabilities.
Conclusion
The discovery of malicious code in the rival-poke8 package highlights the risks associated with using unverified npm packages. It is crucial for developers to remain vigilant and utilize tools like Vulert to monitor their projects for vulnerabilities. By taking proactive measures, such as uninstalling compromised packages and auditing dependencies, developers can safeguard their applications.
See every vulnerability recorded for rival-poke8 →
FAQ
rival-poke8 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, removes private flags, and publishes numerous derivative packages, potentially leading to security vulnerabilities.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By uploading your package-lock.json file, you can check for vulnerabilities without needing to install any software.
Uninstall the rival-poke8 package immediately and audit your project for any other potentially compromised packages.
Regularly audit your dependencies using tools like npm audit, and consider using Vulert to monitor your projects for vulnerabilities continuously.