Malicious Code Injection in ruji-15: A Threat to npm Ecosystem
Summary
MAL-2025-165239: Malicious code in ruji-15 (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 'ruji-15' is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate the development and sharing of code among developers. However, 'ruji-15' has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability in 'ruji-15' originates from its association with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious code modifies the package.json file by removing private flags, altering version numbers, and creating random package names. This behavior can lead to pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ruji-15
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 measure, you can avoid using 'ruji-15' and any other packages associated with the tea.xyz campaign. Monitor your package dependencies and remove any suspicious packages that may have been installed inadvertently.
Conclusion
The 'ruji-15' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package publishing. Developers should take immediate action to remove this package and monitor their dependencies for vulnerabilities to ensure the security of their applications.
See every vulnerability recorded for ruji-15 →
FAQ
The malicious code can lead to the pollution of the npm registry, making it harder for developers to find legitimate packages and potentially introducing security vulnerabilities into applications.
You can use tools like Vulert to monitor your package-lock.json file for vulnerabilities. Vulert provides real-time alerts for open-source vulnerabilities without requiring code access.
You should immediately uninstall the package using 'npm uninstall ruji-15' and review your other dependencies for any potential vulnerabilities.
No, there is no patch available for ruji-15 as it is a malicious package. The best course of action is to remove it from your project.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about known vulnerabilities in the npm ecosystem.