Malicious Code Injection in putri-poke20: npm Package Vulnerability
Summary
MAL-2025-164579: Malicious code in putri-poke20 (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 putri-poke20 package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package, like others in the campaign, is designed to inflate developer reputation scores through automated publishing of variants with randomized names.
Vulnerability Detail
The vulnerability in putri-poke20 stems from its malicious code that modifies the package.json file to remove private flags and change version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior 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 putri-poke20
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-poke20 package and search for alternative packages that provide similar functionality without the associated risks.
Conclusion
The putri-poke20 package is a clear example of how malicious code can infiltrate the npm ecosystem, posing significant risks to developers and their projects. It is vital to stay informed about such vulnerabilities and take proactive measures to ensure the security of your applications.
See every vulnerability recorded for putri-poke20 →
FAQ
putri-poke20 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
If you have used putri-poke20, it is crucial to uninstall it immediately and review your project for any potential security issues.
Yes, you should look for reputable packages that offer similar functionalities but do not have a history of malicious behavior.