Malicious Code Injection in putri-poke25: A Threat to npm Users
Summary
MAL-2025-164584: Malicious code in putri-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
The package 'putri-poke25' is part of a series of malicious npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses significant security risks to users who may unknowingly install these compromised packages.
Vulnerability Detail
The vulnerability in 'putri-poke25' stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This can result in developers unintentionally using compromised packages, which may contain harmful code or lead to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-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 measure, avoid using the 'putri-poke25' package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The putri-poke25 package poses a significant threat due to its malicious code designed to manipulate package metadata and pollute the npm registry. Users are advised to uninstall this package and monitor their projects for vulnerabilities using tools like Vulert. Staying informed and cautious when selecting packages is essential for maintaining software security.
See every vulnerability recorded for putri-poke25 →
FAQ
The putri-poke25 package contains malicious code that modifies package.json files and republishes variants to pollute the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.
You should uninstall the package immediately using 'npm uninstall putri-poke25' and check your project for any other compromised packages.
Yes, look for reputable packages that offer similar functionality without the risks associated with putri-poke25. Always verify the source and reviews of packages before installation.
Vulert uses your package-lock.json file to monitor and alert you in real-time for open-source vulnerabilities, helping you maintain secure software.