Malicious Code Injection in rita-15: A Threat to npm Packages
Summary
MAL-2025-164884: Malicious code in rita-15 (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
rita-15 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. However, it has been compromised to include malicious scripts that can manipulate package metadata and flood the npm registry.
Vulnerability Detail
The vulnerability in rita-15 originates from its association with the tea.xyz token reward campaign, which employs autopublish scripts to create and publish numerous derivative packages with randomized names. These scripts modify the package.json file to remove private flags, alter version numbers, and continuously republish variants, leading to pollution of the npm registry and potential security risks for developers relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-15
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 rita-15 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using npm audit to identify and address vulnerabilities in your dependencies.
Conclusion
The rita-15 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for rita-15 →
FAQ
The rita-15 package contains malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. Check your application against the vulnerability using the Vulert playground.
If you have installed rita-15, it is advisable to remove it from your project immediately and look for alternative packages.
As of now, there are no patches available for rita-15. It is best to remove the package until a secure version is released.
Vulert provides real-time monitoring and alerts for open-source vulnerabilities in your software, allowing you to maintain security without needing to access the code directly.