Malicious Code Injection in rita-24 Package: npm Vulnerability Overview
Summary
MAL-2025-164894: Malicious code in rita-24 (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-24 package is part of the npm ecosystem, primarily used for various JavaScript applications. It is designed to facilitate certain functionalities within the npm environment. However, this package has been identified as part of a malicious campaign that aims to manipulate the npm registry by flooding it with derivative packages, thereby compromising the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in the rita-24 package originates from its association with a token reward campaign that exploits npm's publishing mechanisms. The malicious code embedded in this package modifies the package.json file by 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 with numerous unwanted packages, potentially leading to confusion and security risks for developers relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-24
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 measure, you can avoid using the rita-24 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package dependencies to identify and remove any malicious packages.
Conclusion
The rita-24 package poses a significant risk due to its malicious code that manipulates the npm registry. It is essential to remove this package from your project and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for rita-24 →
FAQ
The rita-24 package is an npm package used in JavaScript applications, but it has been identified as part of a malicious campaign.
The vulnerability can lead to the pollution of the npm registry with unwanted packages, potentially causing confusion and security risks in your project.
You should remove the rita-24 package from your project immediately and check for any alternative packages.
Yes, you can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.