Malicious Code Injection in ruji-49 Package: A Threat to npm Ecosystem
Summary
MAL-2025-165276: Malicious code in ruji-49 (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 ruji-49 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the ruji-49 package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the security and reliability of applications relying on these packages. The malicious payload is executed through scripts such as auto.js, autopublish.js, and others, which are designed to automate the creation and publication of these harmful derivatives.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ruji-49
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 ruji-49 package from your project by executing 'npm uninstall ruji-49'. This will prevent any malicious code from executing while you assess the impact and look for alternative packages.
Conclusion
The ruji-49 package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is essential to take immediate action by updating or removing the package to safeguard your application from potential threats.
See every vulnerability recorded for ruji-49 →
FAQ
The ruji-49 package is an npm package that has been identified as part of a malicious campaign aimed at manipulating package metadata for token rewards.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
If you have installed ruji-49, you should uninstall it immediately and check for any other affected packages in your project.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time. It requires only your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.