Malicious Code Injection in dian-lapis43-ruro: A Threat to npm Packages
Summary
MAL-2025-101528: Malicious code in dian-lapis43-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 package 'dian-lapis43-ruro' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package, like many others in this campaign, is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. Its primary functionality revolves around inflating developer reputation scores for token rewards, but this comes at the cost of security and integrity within the npm ecosystem.
Vulnerability Detail
The vulnerability in 'dian-lapis43-ruro' stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the security of applications that depend on these packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which has been known to flood the npm registry with such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dian-lapis43-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 workaround, you can manually delete the 'dian-lapis43-ruro' package from your project by running the following command: npm uninstall dian-lapis43-ruro. Additionally, ensure to review your package.json file for any unauthorized changes.
Conclusion
The 'dian-lapis43-ruro' package poses a significant threat due to its malicious code that alters package.json files and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for dian-lapis43-ruro →
FAQ
The impact includes potential security risks due to the modification of package.json files and the pollution of the npm registry with malicious packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Currently, there is no patch available. The best course of action is to remove the package from your project.
You should uninstall the package immediately and review your project for any unauthorized changes made by the malicious code.
Vulert uses your package-lock.json to monitor and alert you in real-time for any open-source vulnerabilities, ensuring your application remains secure.