Malicious Code Injection in rival-poke7: A Threat to npm Users

rival-poke7 Updated 26 Nov 2025

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-165055: Malicious code in rival-poke7 (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

rival-poke7 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to manipulate the npm ecosystem by generating and publishing derivative packages with random names, aiming to inflate developer reputation scores for token rewards. The malicious nature of this package poses a significant risk to users and the integrity of the npm registry.

Vulnerability Detail

The vulnerability originates from the malicious code embedded within the rival-poke7 package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also compromises the security of applications relying on this package. Users may unknowingly install compromised versions, leading to potential data breaches or system vulnerabilities.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall rival-poke7

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, users can remove the rival-poke7 package from their project by executing the command: 'npm uninstall rival-poke7'. This will prevent any malicious code from executing until a secure version is available.

Conclusion

The rival-poke7 package poses a significant threat due to its malicious code designed to manipulate the npm registry. Users are urged to take immediate action by updating or uninstalling the package and utilizing tools like Vulert to monitor for vulnerabilities. Staying informed and proactive is essential to maintaining the security of your applications.

See every vulnerability recorded for rival-poke7 →

Share this vulnerability

FAQ

The vulnerability involves malicious code that modifies package.json files and repackages the software, leading to potential security risks.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

If you have installed rival-poke7, you should uninstall it immediately and check for any updates or patches for your other dependencies.

Regularly updating your packages and using tools like Vulert can help monitor vulnerabilities in real-time, reducing the risk of exposure.

Using a compromised package can lead to data breaches, unauthorized access to your system, and overall instability of your application.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall rival-poke7

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback