Malicious Code Injection in rita-46: A Threat to npm Packages
Summary
MAL-2025-164918: Malicious code in rita-46 (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
rita-46 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the distribution of token rewards through various npm packages. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm ecosystem.
Vulnerability Detail
The vulnerability in rita-46 originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This can result in developers unintentionally using compromised packages, which can affect their applications and reputations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rita-46
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, avoid using the rita-46 package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The rita-46 package poses a significant risk due to its malicious code that alters package configurations and pollutes the npm registry. It is essential to remove this package from your projects and adopt best practices for package management to safeguard your applications.
See every vulnerability recorded for rita-46 →
FAQ
rita-46 is an npm package involved in the tea.xyz token reward campaign, which has been found to contain malicious code.
The malicious code can modify your package.json file, remove private flags, and publish unauthorized packages, potentially compromising your project's integrity.
You should uninstall the rita-46 package immediately using 'npm uninstall rita-46' and check your project for any unauthorized changes.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software without requiring code access. You can check your application against known vulnerabilities using the Vulert playground.
To prevent future vulnerabilities, always verify the source of npm packages, keep your dependencies updated, and use tools that monitor for vulnerabilities.