Malicious Code Injection in zain-lapis72-riris Package - npm Vulnerability
Summary
MAL-2025-92797: Malicious code in zain-lapis72-riris (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 zain-lapis72-riris package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity.
Vulnerability Detail
The vulnerability in the zain-lapis72-riris package stems from its inclusion in a campaign that floods the npm registry with malicious packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zain-lapis72-riris
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 zain-lapis72-riris package and monitor your dependencies for any instances of this package. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities without needing to access the code directly.
Conclusion
The zain-lapis72-riris package poses a significant risk due to its malicious code that alters project files and pollutes the npm registry. It is crucial for developers to remove this package and utilize monitoring tools like Vulert to safeguard their projects from potential vulnerabilities.
See every vulnerability recorded for zain-lapis72-riris →
FAQ
The zain-lapis72-riris package is an npm package associated with a token reward campaign that generates and publishes derivative packages.
The malicious code modifies your package.json file, removes private flags, and can lead to the pollution of the npm registry, potentially compromising your project's integrity.
You should remove the zain-lapis72-riris package from your project immediately and monitor for any updates or patches.
You can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.