Malicious Code Injection in zul-lapis79-riris Package - npm Vulnerability
Summary
MAL-2025-92996: Malicious code in zul-lapis79-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 zul-lapis79-riris package is part of a broader set of packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. This behavior is intended to inflate developer reputation scores in exchange for token rewards, making the package particularly harmful to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the zul-lapis79-riris package stems from its inclusion in a malicious campaign that utilizes autopublish scripts to modify package.json files. These scripts remove private flags, alter version numbers, and create random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the security of the affected package but also affects the overall trustworthiness of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zul-lapis79-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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Ensure that your package-lock.json does not include zul-lapis79-riris. You can also use the following command to audit your dependencies: npm audit.
Conclusion
The zul-lapis79-riris package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial to remove this package and monitor your dependencies to maintain the security of your projects. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for zul-lapis79-riris →
FAQ
The zul-lapis79-riris package is part of a malicious campaign that generates and publishes numerous derivative packages to inflate developer reputation scores for token rewards.
This vulnerability can compromise the integrity of your project by introducing malicious code that modifies package configurations and floods the npm registry with unwanted packages.
If you have installed the zul-lapis79-riris package, it is recommended to remove it immediately and audit your project for any other potentially malicious dependencies.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground.
To prevent future vulnerabilities, regularly audit your dependencies, keep your packages updated, and utilize tools like Vulert to monitor for any emerging threats.