Malicious Code Injection in dian-lapis16-ruro Package: A Threat to npm Ecosystem
Summary
MAL-2025-101527: Malicious code in dian-lapis16-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 dian-lapis16-ruro package is part of a broader initiative linked to the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package, like others in the campaign, is designed to manipulate npm's publishing system, potentially harming developers' reputations and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the dian-lapis16-ruro package arises from its inclusion in a malicious campaign that employs scripts to automatically generate and publish derivative packages with randomized names. These scripts modify the package.json file to remove private flags, alter version numbers, and continuously republish variants, leading to pollution of the npm registry. This not only affects the reputation of developers but also poses risks of dependency confusion and malicious code execution in applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dian-lapis16-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 measure, you can avoid using the dian-lapis16-ruro package and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The dian-lapis16-ruro package poses a significant risk due to its malicious code and association with a harmful campaign. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for dian-lapis16-ruro →
FAQ
dian-lapis16-ruro is an npm package associated with a token reward campaign that generates and publishes numerous derivative packages to manipulate developer reputation.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should immediately remove the dian-lapis16-ruro package from your project and monitor for any updates or patches.
You can use tools like npm audit to scan your project for vulnerabilities. Additionally, Vulert can help monitor and alert you in real-time for open-source vulnerabilities using your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.