Malicious Code Injection in putri-mangut19-riris Package
Summary
MAL-2025-89702: Malicious code in putri-mangut19-riris (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-mangut19-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's primary functionality is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that can affect the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the putri-mangut19-riris package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The scripts continuously republish these variants, polluting the npm registry and potentially leading to security risks for developers who unknowingly use these compromised packages. The malicious payload can inflate developer reputation scores fraudulently, undermining trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-mangut19-riris
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 the putri-mangut19-riris package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of packages before installation.
Conclusion
The putri-mangut19-riris package has been identified as containing malicious code that poses a significant risk to developers using npm. It is essential to remove this package from your projects and to stay vigilant about the packages you include in your applications. Utilizing tools like Vulert can help you monitor for vulnerabilities effectively.
See every vulnerability recorded for putri-mangut19-riris →
FAQ
The putri-mangut19-riris package is an npm package linked to the tea.xyz token reward campaign, which has been compromised to include malicious scripts.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to security vulnerabilities and pollution of the npm registry.
You should uninstall the putri-mangut19-riris package immediately using the command npm uninstall putri-mangut19-riris.
Regularly audit your dependencies, use trusted packages, and consider using tools like Vulert to monitor for vulnerabilities in your project.
Vulert is a tool that monitors and alerts you in real-time for open-source vulnerabilities in your software using just the package-lock.json file. You can check if your application is affected by visiting the Vulert playground.