Malicious Code Injection in zain-rangi38-riris Package
Summary
MAL-2025-92825: Malicious code in zain-rangi38-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-rangi38-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and deployment of applications by providing reusable code. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages designed to manipulate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the zain-rangi38-riris package originates from its association with a token reward campaign that exploits npm's package publishing system. 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 in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zain-rangi38-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, avoid using the zain-rangi38-riris package and monitor your package-lock.json file for any unauthorized changes. You can also utilize tools like Vulert to monitor for vulnerabilities in your dependencies without needing to access the code directly.
Conclusion
The zain-rangi38-riris package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised versions. It is crucial for developers to remove this package and monitor their dependencies to maintain the security of their applications.
See every vulnerability recorded for zain-rangi38-riris →
FAQ
The zain-rangi38-riris package is an npm package that has been identified as part of a malicious campaign aimed at manipulating developer reputation scores.
Using the zain-rangi38-riris package can lead to security risks, including unauthorized modifications to your package.json file and potential exposure to malicious code.
If you have installed the zain-rangi38-riris package, you should uninstall it immediately using 'npm uninstall zain-rangi38-riris' and review your project for any unauthorized changes.
You can use Vulert to monitor your package-lock.json file for vulnerabilities in real-time. This tool does not require code access or installation.
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.