Malicious Code Injection in rita-7 Package: npm Vulnerability Overview
Summary
MAL-2025-164944: Malicious code in rita-7 (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-7 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate various functionalities within the npm registry, but it has been compromised to include malicious code that affects its integrity and security. The vulnerability stems from scripts that automatically generate and publish derivative packages, which can lead to reputation inflation for developers involved in the tea protocol.
Vulnerability Detail
The vulnerability in the rita-7 package originates from its association with the tea.xyz token reward campaign, which has been identified as a source of malicious activity on npm. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, thereby polluting the npm registry. This can lead to significant ramifications, including the potential for developers to unknowingly install compromised packages, which can further propagate malicious code across projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-7
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-7 package until a secure version is released. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The rita-7 package has been identified as containing malicious code that can compromise the security of projects using it. It is crucial for developers to stay informed about such vulnerabilities and take appropriate actions to mitigate risks, including updating or removing affected packages.
See every vulnerability recorded for rita-7 →
FAQ
The rita-7 package is an npm package associated with the tea.xyz token reward campaign, designed to facilitate various functionalities within the npm ecosystem.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
If you have installed rita-7, it is recommended to update the package to the latest patched version or remove it from your project until a secure version is available.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.