Malicious Code Injection in rita-87 Package: A Threat to npm Ecosystem
Summary
MAL-2025-164963: Malicious code in rita-87 (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 rita-87 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 in exchange for token rewards. However, its functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the rita-87 package originates from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only pollutes the npm registry but also poses a risk of reputation damage to developers and can lead to the distribution of compromised software. The malicious payload is designed to continuously republish variants, exacerbating the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-87
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-87 package altogether and look for alternative packages that provide similar functionality without the associated risks. If you must use it, consider isolating it in a controlled environment.
Conclusion
The rita-87 package poses a significant threat to the npm ecosystem due to its malicious code that modifies package metadata and repopulates the registry with compromised packages. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain software integrity.
See every vulnerability recorded for rita-87 →
FAQ
The rita-87 package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potential reputation damage for developers, and the risk of distributing compromised software.
You should uninstall the rita-87 package immediately using 'npm uninstall rita-87' and look for secure alternatives.
No, there are no patches available for the rita-87 package as it is inherently malicious. The best course of action is to remove it.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.