Malicious Code Injection in putri-rujak13-ruro Package - npm Vulnerability
Summary
MAL-2025-107533: Malicious code in putri-rujak13-ruro (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-rujak13-ruro package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability stems from the malicious code embedded within the putri-rujak13-ruro package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-rujak13-ruro
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-rujak13-ruro package and look for alternative packages that provide similar functionality without the risk of malicious code. Always verify the integrity of packages before installation.
Conclusion
The putri-rujak13-ruro package has been identified as containing malicious code that compromises the npm registry. It is essential for developers to be vigilant and remove this package from their projects. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for putri-rujak13-ruro →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file and can lead to the installation of compromised packages, potentially exposing your application to security risks.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Immediately uninstall the package using 'npm uninstall putri-rujak13-ruro' and review your project for any other potentially compromised packages.
Yes, look for other npm packages that provide similar functionality but have a good reputation and are actively maintained.