Malicious Code Injection in rita-12 Package: A Threat to npm Ecosystem
Summary
MAL-2025-164881: Malicious code in rita-12 (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-12 package is part of the npm ecosystem, primarily utilized for various JavaScript applications. It is designed to facilitate certain functionalities within projects but has been compromised. The package has been associated with a token reward campaign that exploits npm's publishing system, leading to the proliferation of malicious variants.
Vulnerability Detail
The vulnerability in the rita-12 package stems from its involvement in a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that automatically modify the package.json file, removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, posing significant risks to developers who may unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-12
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-12 package altogether. If it is already in your project, remove it by executing: npm uninstall rita-12. Additionally, consider using Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The rita-12 package poses a significant risk due to its involvement in a malicious npm campaign. It is essential to remove this package from your projects and stay vigilant by monitoring your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for rita-12 →
FAQ
Rita-12 is an npm package that has been compromised and is associated with a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to the installation of malicious packages that may compromise your project's integrity and security.
You should uninstall the rita-12 package immediately and monitor your project for any other vulnerabilities.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Regularly monitor your dependencies using tools like Vulert, and keep your packages updated to the latest secure versions.