Malicious Code Injection in prayoga-poke31: A Threat to npm Users
Summary
MAL-2025-164529: Malicious code in prayoga-poke31 (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-poke31 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various automated scripts. However, it has been identified as containing malicious code that compromises the integrity of the npm registry and the security of developers using it.
Vulnerability Detail
The vulnerability in prayoga-poke31 originates from its involvement in 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 inflates developer reputation scores for token rewards but also pollutes the npm registry, potentially leading to security risks for users who unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall prayoga-poke31
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 prayoga-poke31 and any packages that may depend on it. Regularly audit your npm packages using tools like 'npm audit' to identify and address vulnerabilities.
Conclusion
The prayoga-poke31 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for prayoga-poke31 →
FAQ
prayoga-poke31 is an npm package involved in a token reward campaign that has been found to contain malicious code.
The malicious code modifies your package.json file, potentially leading to the installation of compromised packages and security risks.
You should uninstall prayoga-poke31 immediately and check for any dependencies that may be affected.
You can use tools like 'npm audit' or services like Vulert, which monitors your package-lock.json for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.