Malicious Code Injection in putri-kupang55-riris Package
Summary
MAL-2025-89682: Malicious code in putri-kupang55-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-kupang55-riris package is part of the npm ecosystem, primarily used for JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package, like others in the campaign, is designed to inflate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in the putri-kupang55-riris package stems from its 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 the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-kupang55-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, you can prevent the installation of this package by adding it to your npm blacklist or by using a package manager that allows you to specify safe versions. For example, you can add the following line to your package.json under 'resolutions': { 'putri-kupang55-riris': '0.0.0' } to avoid using this package.
Conclusion
The putri-kupang55-riris package contains malicious code that poses a significant risk to your project by modifying critical files and publishing unwanted variants. It is crucial to remove this package and monitor your dependencies for similar vulnerabilities.
See every vulnerability recorded for putri-kupang55-riris →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to inflate developer reputation scores.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using npm uninstall putri-kupang55-riris and check for any other affected packages.
Currently, there is no patched version available for the putri-kupang55-riris package. It is recommended to remove it from your project.