Malicious Code Injection in ruji-30 Package: A Threat to npm Ecosystem
Summary
MAL-2025-165256: Malicious code in ruji-30 (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-30 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability in the ruji-30 package stems from its association with a token reward campaign that floods the npm registry with malicious packages. The malicious code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior can lead to the proliferation of derivative packages that pollute the npm registry, ultimately compromising the integrity of the ecosystem and potentially leading to security breaches for applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ruji-30
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 workaround, you can avoid using the ruji-30 package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The ruji-30 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata and proliferate harmful packages. It is crucial for developers to be vigilant, remove affected packages, and utilize monitoring tools to safeguard their applications.
See every vulnerability recorded for ruji-30 →
FAQ
The ruji-30 package is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem.
The malicious code modifies package.json files, removes private flags, and generates random package names, which can lead to security vulnerabilities in your application.
You should uninstall the ruji-30 package immediately using 'npm uninstall ruji-30' and monitor your project for any further vulnerabilities.
To prevent vulnerabilities, regularly audit your dependencies, use tools like Vulert for real-time monitoring, and avoid using unverified packages.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.