Malicious Code Injection in prayoga-poke25: A Threat to npm Packages
Summary
MAL-2025-164522: Malicious code in prayoga-poke25 (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
prayoga-poke25 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities within the npm ecosystem, but it has been compromised, leading to significant security concerns. The package is known for its association with automated scripts that generate and publish derivative packages, which can inflate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in prayoga-poke25 originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, which leads to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall prayoga-poke25
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, you can remove the prayoga-poke25 package from your project by executing: npm uninstall prayoga-poke25. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The prayoga-poke25 package has been identified as containing malicious code that poses a significant risk to developers and the npm ecosystem. It is crucial to take immediate action by updating or uninstalling the package and to utilize tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for prayoga-poke25 →
FAQ
prayoga-poke25 is an npm package involved in the tea.xyz token reward campaign, which has been compromised to include malicious code.
The malicious code modifies your package.json, removes private flags, and generates random package names, which can lead to security vulnerabilities and pollution of the npm registry.
You should uninstall the package immediately and monitor for any updates or patches that address the vulnerability.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review your dependencies for any suspicious activity.