Malicious Code Injection in qori-lapis2-ruro: A Threat to npm Ecosystem
Summary
MAL-2025-107584: Malicious code in qori-lapis2-ruro (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
qori-lapis2-ruro is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package lies in its ability to alter package configurations and republish variants, thereby polluting the npm ecosystem.
Vulnerability Detail
The vulnerability in qori-lapis2-ruro originates from its design to execute autopublish scripts that modify the package.json file. These modifications include removing private flags, changing version numbers, and generating random package names, which can lead to a significant increase in spammy packages within the npm registry. This not only affects the integrity of the npm ecosystem but can also mislead developers and users into using potentially harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall qori-lapis2-ruro
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
Currently, the best workaround is to avoid using the qori-lapis2-ruro package altogether. If it is already in use, ensure to remove it and monitor your dependencies for any similar malicious packages.
Conclusion
The qori-lapis2-ruro package poses a significant threat to the npm ecosystem due to its malicious capabilities. It is crucial for developers to be vigilant, remove any affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for qori-lapis2-ruro →
FAQ
qori-lapis2-ruro is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through spammy package publications.
The vulnerability can lead to the introduction of malicious code and spammy packages in your project, potentially compromising its integrity and security.
You should uninstall the qori-lapis2-ruro package immediately and check your project for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about known vulnerabilities in the npm ecosystem.