Malicious Code in modirai-igno-jimg: A Threat to npm Ecosystem
Summary
MAL-2025-160681: Malicious code in modirai-igno-jimg (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 package modirai-igno-jimg is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses a risk to developers who may unknowingly use these compromised packages.
Vulnerability Detail
The vulnerability in modirai-igno-jimg stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to security risks for developers who rely on these packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits the npm ecosystem for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall modirai-igno-jimg
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 workaround, you can prevent the installation of this malicious package by using the following command to uninstall it: npm uninstall modirai-igno-jimg. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The modirai-igno-jimg package poses a significant risk to developers within the npm ecosystem due to its malicious behavior. Immediate action is required to remove this package and safeguard your projects from potential threats. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for modirai-igno-jimg →
FAQ
modirai-igno-jimg is an npm package that has been identified as malicious, part of a campaign to inflate developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, and if used, it may compromise your project's integrity and security.
You should uninstall the modirai-igno-jimg package immediately using the command: npm uninstall modirai-igno-jimg.
Currently, there is no patched version available for modirai-igno-jimg, so the best action is to remove the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.