Malicious Code Injection in rita-38 Package: A Threat to npm Users
Summary
MAL-2025-164909: Malicious code in rita-38 (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-38 package is part of the npm ecosystem, typically used for various JavaScript applications. However, it has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system. This package, like others in the campaign, contains scripts that automatically generate and publish derivative packages, leading to potential security risks for users.
Vulnerability Detail
The vulnerability in the rita-38 package originates from its involvement in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only pollutes the npm registry but also compromises the integrity of applications that depend on this package. The malicious payload can lead to unauthorized access and manipulation of user data, making it a significant threat to developers and users alike.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-38
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, consider removing the rita-38 package from your project until a secure version is released. You can do this by executing: npm uninstall rita-38. Additionally, monitor your package-lock.json file for any unexpected changes.
Conclusion
The rita-38 package poses a significant security risk due to its malicious code that modifies essential files and publishes unauthorized packages. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing monitoring.
See every vulnerability recorded for rita-38 →
FAQ
Rita-38 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your application's security and integrity.
If you have installed rita-38, it is recommended to uninstall it immediately and check for any unauthorized changes in your project.
Yes, you can use tools like Vulert, which monitors your package-lock.json file 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 any signup.