Malicious Code Injection in riyanto-poke38: A Threat to npm Ecosystem
Summary
MAL-2025-165145: Malicious code in riyanto-poke38 (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 riyanto-poke38 package 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. The primary function of such packages is to manipulate developer reputation scores through automated publishing scripts, thereby compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in riyanto-poke38 originates from its design to include malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for users who install these packages, and a degradation of trust in the npm ecosystem as a whole.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall riyanto-poke38
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 riyanto-poke38 package and consider using alternative packages that offer similar functionality without the associated risks. Regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The riyanto-poke38 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package integrity. It is crucial for developers to remain vigilant, uninstall affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for riyanto-poke38 →
FAQ
Riyanto-poke38 is an npm package that has been identified as part of a malicious campaign to manipulate developer reputation scores through automated publishing.
The malicious code can alter your package.json file, leading to potential security risks and the pollution of the npm registry with unwanted packages.
You should uninstall the package immediately using 'npm uninstall riyanto-poke38' and check your project for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application using the Vulert playground without any signup.
Yes, consider using other reputable packages that provide similar functionality without the associated risks of malicious code.