Malicious Code Injection in modirai-igno-jig: A Threat to npm Packages
Summary
MAL-2025-160672: Malicious code in modirai-igno-jig (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-jig is an npm package that is part of the tea.xyz token reward campaign, which has been associated with a series of malicious activities on the npm registry. This package is designed to automate the generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. Its functionality is compromised by the presence of malicious scripts that alter package metadata.
Vulnerability Detail
The vulnerability in modirai-igno-jig stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, change version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The malicious payload can affect developers relying on this package, as it undermines the trustworthiness of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall modirai-igno-jig
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 remove the modirai-igno-jig package from your project by executing 'npm uninstall modirai-igno-jig'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The modirai-igno-jig package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised packages. It is crucial for developers to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for modirai-igno-jig →
FAQ
modirai-igno-jig is an npm package involved in the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, potentially compromising your project's integrity and reputation on the npm registry.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.