Malicious Code Injection in zul-semur94-riris Package: A Threat to npm Users
Summary
MAL-2025-93046: Malicious code in zul-semur94-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-semur94-riris package is part of a broader campaign targeting npm users, specifically linked to the tea.xyz token reward initiative. This package, like others in the campaign, is designed to manipulate the npm registry by creating and publishing numerous derivative packages with randomized names. The malicious nature of this package raises significant concerns about the integrity of the npm ecosystem and the potential for reputational damage to developers.
Vulnerability Detail
The vulnerability in the zul-semur94-riris package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only inflates developer reputation scores fraudulently but also leads to the pollution of the npm registry with numerous unwanted packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs scripts to automate the publication of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zul-semur94-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 workaround, you can prevent the installation of this package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include zul-semur94-riris or any other packages from the tea.xyz campaign. You can also use the following command to audit your dependencies: npm audit.
Conclusion
The zul-semur94-riris package poses a significant threat to npm users due to its malicious code designed to manipulate the npm registry. It is crucial to remove this package from your project and monitor your dependencies for similar vulnerabilities. Utilizing tools like Vulert can help maintain the integrity of your software.
See every vulnerability recorded for zul-semur94-riris →
FAQ
The zul-semur94-riris package is part of a malicious campaign that aims to manipulate the npm registry by publishing numerous derivative packages with random names.
This vulnerability can lead to the pollution of your project's dependencies, potentially causing conflicts and reputational damage due to association with malicious packages.
If you have installed the zul-semur94-riris package, you should uninstall it immediately using npm uninstall zul-semur94-riris.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application using the Vulert playground without any signup.
Regularly audit your dependencies using npm audit and consider using tools like Vulert to monitor for vulnerabilities in real-time.