Malicious Code Injection in putri-toge5-riris Package - npm Vulnerability
Summary
MAL-2025-89798: Malicious code in putri-toge5-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-toge5-riris package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. This behavior raises significant concerns regarding the integrity and security of the npm registry.
Vulnerability Detail
The vulnerability in the putri-toge5-riris package stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the security of applications that depend on these packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate these malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-toge5-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 measure, you can avoid using the putri-toge5-riris package and any other packages associated with the tea.xyz token reward campaign. Instead, look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The putri-toge5-riris package poses a significant security risk due to its malicious behavior of modifying package.json files and republishing variants. It is essential to remove this package and monitor your project for vulnerabilities to maintain the integrity of your applications.
See every vulnerability recorded for putri-toge5-riris →
FAQ
It is an npm package that is part of the tea.xyz token reward campaign, designed to automate the generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise the security of applications that rely on affected packages.
You should uninstall the putri-toge5-riris package immediately and check your project for any other potentially malicious packages.
No patches are available for the putri-toge5-riris package, as it is recommended to remove it entirely from your project.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground.