Malicious Code Injection in rita-61: A Threat to npm Packages
Summary
MAL-2025-164935: Malicious code in rita-61 (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 package rita-61 is part of the npm ecosystem, which is widely used for JavaScript development. It is often utilized for various functionalities, including dependency management and package distribution. However, rita-61 has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to the proliferation of harmful packages designed to manipulate developer reputation scores.
Vulnerability Detail
The vulnerability in rita-61 stems from its association with the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. These packages contain scripts that automatically modify package.json files to remove private flags, alter version numbers, and generate random package names. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly install these malicious packages, leading to potential data breaches or system compromises.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-61
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-61 package from your project by executing the command: 'npm uninstall rita-61'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The rita-61 package poses a significant security risk due to its malicious code injection capabilities. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their projects. Regular updates and monitoring tools like Vulert can help mitigate these risks effectively.
See every vulnerability recorded for rita-61 →
FAQ
rita-61 is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to the installation of malicious code that modifies your project's package.json, potentially compromising your application's security.
You should uninstall the package immediately and check for any unauthorized changes in your project files.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can also check your application for this vulnerability using the Vulert playground.
Regularly update your dependencies and use tools like Vulert to monitor for vulnerabilities in real-time.