Malicious Code Injection in rita-9 Package: A Threat to npm Ecosystem
Summary
MAL-2025-164966: Malicious code in rita-9 (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-9 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. The primary functionality of rita-9 is to serve as a tool within this ecosystem, but it has been compromised to include harmful scripts that can manipulate package metadata and impact the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the rita-9 package originates from its association with a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to pollution of the npm registry and can potentially harm developers by compromising the integrity of their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-9
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 remove the rita-9 package from your project by executing the following command: 'npm uninstall rita-9'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The rita-9 package poses a significant risk due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is crucial for developers to remain vigilant, update their packages, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for rita-9 →
FAQ
The rita-9 package is a JavaScript package within the npm ecosystem, primarily associated with the tea.xyz token reward campaign.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your project's integrity and reputation.
You should uninstall the rita-9 package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.