Malicious Code Injection in prayoga-poke27: A Threat to npm Ecosystem
Summary
MAL-2025-164524: Malicious code in prayoga-poke27 (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-poke27 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the distribution of token rewards through various scripts. However, it has been identified as containing malicious code that compromises the integrity of the npm registry and affects developers' reputations.
Vulnerability Detail
The vulnerability in prayoga-poke27 stems from its inclusion in a campaign that floods the npm registry with malicious packages. The package contains scripts that automatically modify its own package.json file to remove private flags, change version numbers, and generate random package names. This behavior leads to the pollution of the npm registry and can significantly impact developers by inflating reputation scores fraudulently. The malicious payload is designed to continuously republish variants of the package, further exacerbating the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall prayoga-poke27
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 workaround, you can use the following command to prevent the installation of malicious packages in the future: npm config set save-exact true. This setting ensures that only the exact version of a package is installed, reducing the risk of inadvertently installing a compromised version.
Conclusion
The prayoga-poke27 package poses a significant threat to the npm ecosystem due to its malicious code that alters package metadata and floods the registry with compromised versions. It is crucial for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for prayoga-poke27 →
FAQ
prayoga-poke27 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, removes private flags, and can lead to the pollution of the npm registry, impacting your project's integrity.
You should uninstall the prayoga-poke27 package immediately using the command: npm uninstall prayoga-poke27.
Regularly monitor your dependencies, use tools like Vulert to check for vulnerabilities, and set your npm configuration to save exact versions.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by visiting the Vulert playground without any signup.