Malicious Code Injection in riyanto-poke94: A Threat to npm Users
Summary
MAL-2025-165207: Malicious code in riyanto-poke94 (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 riyanto-poke94 is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in riyanto-poke94 stems from its inclusion in a malicious campaign that modifies package.json files to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of derivative packages, which can pollute the npm registry and compromise the security of applications relying on these packages. The origin of this vulnerability is linked to the automated scripts (auto.js, autopublish.js, etc.) that are designed to exploit the npm ecosystem for token rewards.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall riyanto-poke94
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 riyanto-poke94 package and monitor your dependencies for any malicious activity. Consider using tools like Vulert to check your package-lock.json for vulnerabilities. You can access Vulert's playground at https://vulert.com/scanner to see if your application is affected by this vulnerability without needing to sign up.
Conclusion
The riyanto-poke94 package poses a significant risk due to its malicious code that manipulates npm package metadata. Users are advised to uninstall this package and monitor their dependencies closely. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities effectively.
See every vulnerability recorded for riyanto-poke94 →
FAQ
Riyanto-poke94 is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
You should immediately uninstall the package using npm uninstall riyanto-poke94 and review your other dependencies for any similar vulnerabilities.
Yes, regularly update your dependencies, use trusted packages, and utilize tools like Vulert to monitor your projects for vulnerabilities.
Vulert is a tool that monitors your package-lock.json for open-source vulnerabilities in real-time. You can use it to check if your application is affected by vulnerabilities without requiring access to the code or installation.