Malicious Code Injection in zain-lengko7-riris Package
Summary
MAL-2025-92799: Malicious code in zain-lengko7-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-lengko7-riris package is part of the npm ecosystem, often used in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant issues in the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the zain-lengko7-riris package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then continuously republished to pollute the npm registry. This not only compromises the integrity of the affected projects but also poses a risk of dependency confusion and potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zain-lengko7-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 avoid using the zain-lengko7-riris package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The zain-lengko7-riris package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is essential to remove this package from your projects and monitor for any similar vulnerabilities in the future. Utilizing tools like Vulert can help maintain the integrity of your software dependencies.
See every vulnerability recorded for zain-lengko7-riris →
FAQ
The zain-lengko7-riris package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The malicious code can modify your package.json file, remove private flags, and continuously republish variants, leading to potential security risks and dependency confusion.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed the zain-lengko7-riris package, you should uninstall it immediately using 'npm uninstall zain-lengko7-riris' and look for alternative packages.
To prevent future vulnerabilities, regularly monitor your dependencies using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.