Malicious Code Injection in modirai-igno-jimagi: A Threat to npm Packages
Summary
MAL-2025-160677: Malicious code in modirai-igno-jimagi (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
modirai-igno-jimagi is an npm package that appears to be part of a larger scheme involving the tea.xyz token reward campaign. This package is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names, thereby inflating developer reputation scores for token rewards. The package's functionality is compromised by malicious scripts that alter its metadata.
Vulnerability Detail
The vulnerability originates from the package's involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, changes version numbers, and generates random package names. This not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall modirai-igno-jimagi
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 modirai-igno-jimagi package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The modirai-igno-jimagi package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and to adopt best practices for dependency management to safeguard their applications.
See every vulnerability recorded for modirai-igno-jimagi →
FAQ
modirai-igno-jimagi is an npm package involved in a malicious campaign that generates and publishes derivative packages to inflate developer reputation scores.
The vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the modirai-igno-jimagi package immediately and check your project for any other potentially compromised packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground.
Regularly review and update your dependencies, use trusted sources for packages, and consider using tools like Vulert to monitor for vulnerabilities.