Malicious Code Injection in ruji-11 Package: A Threat to npm Users
Summary
MAL-2025-165235: Malicious code in ruji-11 (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-11 package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. This package, like others in the campaign, is designed to manipulate the npm registry by creating numerous variants of itself with altered names and metadata.
Vulnerability Detail
The vulnerability in the ruji-11 package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ruji-11
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 avoid using the ruji-11 package and any packages that depend on it. Additionally, consider using a package-lock.json file to lock your dependencies to known safe versions, preventing the installation of compromised packages.
Conclusion
The ruji-11 package poses a significant threat to the npm ecosystem due to its malicious code that alters package metadata and publishes derivative packages. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for ruji-11 →
FAQ
The ruji-11 package is an npm package associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through malicious practices.
The vulnerability can lead to the installation of compromised packages, which may introduce security risks and affect the integrity of your application.
You should uninstall the ruji-11 package immediately and check your project for any dependencies that may rely on it.
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 or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by the ruji-11 vulnerability without needing to sign up.