Malicious Code Injection in putri-donat75-riris Package
Summary
MAL-2025-89645: Malicious code in putri-donat75-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-donat75-riris package is part of a series of npm packages that emerged during 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. The package is primarily used within the npm ecosystem, which is a popular repository for JavaScript packages.
Vulnerability Detail
The vulnerability in the putri-donat75-riris package stems from malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The origin of this issue is linked to a broader trend of malicious packages flooding npm, specifically targeting the tea protocol token rewards. The ramifications include potential security risks for developers who unknowingly use these packages, as well as the degradation of the npm registry's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-donat75-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 workaround, you can use the following command to prevent the installation of the malicious package: npm install --no-optional putri-donat75-riris. However, the best approach is to remove the package entirely and avoid using any packages associated with the tea.xyz token reward campaign.
Conclusion
The putri-donat75-riris package contains malicious code that poses significant risks to developers and the integrity of the npm registry. It is crucial to remove this package from your projects and monitor for similar vulnerabilities. Utilizing tools like Vulert can help keep your applications secure.
See every vulnerability recorded for putri-donat75-riris →
FAQ
It is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated package generation.
The malicious code modifies your package.json file, potentially exposing your project to security risks and polluting the npm registry.
You should uninstall the package immediately using the command npm uninstall putri-donat75-riris and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.