Malicious Code Vulnerability in rita-20 Package: npm Registry Threat
Summary
MAL-2025-164890: Malicious code in rita-20 (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-20 package is part of the npm ecosystem, primarily used for various JavaScript applications. It is designed to facilitate the development and deployment of web applications. However, it has been identified as part of a malicious campaign that targets npm users by flooding the registry with harmful packages. This vulnerability poses a significant risk to developers who may unknowingly integrate compromised packages into their projects.
Vulnerability Detail
The vulnerability in the rita-20 package originates from its association with the tea.xyz token reward campaign, which exploits npm's package publishing system. The malicious code embedded within the package modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of variants that pollute the npm registry, potentially leading to reputation damage for developers and security risks for applications that utilize these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-20
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-20 package from your project by executing the following command: npm uninstall rita-20. This will help mitigate the risk until a secure version is available or until you can replace it with an alternative package.
Conclusion
The rita-20 package has been identified as a vector for malicious code that can compromise the security of applications using it. Developers are advised to take immediate action by updating or removing the package to protect their projects. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities in real-time.
See every vulnerability recorded for rita-20 →
FAQ
The rita-20 package is a JavaScript library available on npm, used for various web development tasks.
The vulnerability can lead to the introduction of malicious code into your application, compromising its security and integrity.
You should immediately uninstall the rita-20 package and check for any updates or alternatives to ensure your application remains secure.
Yes, you can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.