Malicious Code Injection in hadi-lapis35-ruro Package - npm Vulnerability
Summary
MAL-2025-103450: Malicious code in hadi-lapis35-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
The hadi-lapis35-ruro package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that 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 modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which floods npm with malicious packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random names for new packages. This behavior can lead to significant security risks, including the potential for unauthorized access to sensitive data and the degradation of the npm registry's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hadi-lapis35-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
As a temporary workaround, you can avoid using the hadi-lapis35-ruro package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages using tools like Vulert to monitor for vulnerabilities.
Conclusion
The hadi-lapis35-ruro package poses a significant security risk due to its malicious code that modifies critical files and repopulates the npm registry with compromised packages. It is crucial to uninstall this package and monitor your application for vulnerabilities to maintain security.
See every vulnerability recorded for hadi-lapis35-ruro →
FAQ
The hadi-lapis35-ruro package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
This vulnerability can lead to unauthorized modifications of your package.json file and the potential for malicious code to be executed within your application.
You should uninstall the hadi-lapis35-ruro package immediately and check for any alternative packages that do not pose security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground.
Regularly audit your dependencies, keep your packages updated, and use tools like Vulert to monitor for vulnerabilities in your open-source software.