Malicious Code Injection in putri-poke24: A Threat to npm Ecosystem
Summary
MAL-2025-164583: Malicious code in putri-poke24 (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 'putri-poke24' is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to automatically generate and publish derivative packages with randomized names, aiming to inflate developer reputation scores for token rewards. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in 'putri-poke24' originates from its malicious code that alters the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly use these compromised packages. The malicious payload is designed to continuously republish variants, leading to further pollution of the registry and potential exploitation of developers' environments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-poke24
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 avoid using the 'putri-poke24' package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The 'putri-poke24' package poses a significant threat to the npm ecosystem due to its malicious code that alters package files and repopulates the registry with compromised packages. It is crucial for developers to remove this package and utilize tools like Vulert to monitor their projects for vulnerabilities.
See every vulnerability recorded for putri-poke24 →
FAQ
The main issue is that it contains malicious code that modifies package.json files and republishes variants to pollute the npm registry.
You can use tools like Vulert to monitor your package-lock.json for vulnerabilities. Visit Vulert Scanner to check if your application is affected.
You should uninstall the package immediately using 'npm uninstall putri-poke24' and audit your project for any other compromised packages.
Using this package can lead to the exposure of your project to further vulnerabilities and can compromise the integrity of your development environment.
Vulert uses your package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, providing an easy way to stay informed.