Malicious Code Injection in modira-fuhopia-janadurai: A Threat to npm Packages
Summary
MAL-2025-160573: Malicious code in modira-fuhopia-janadurai (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
modira-fuhopia-janadurai is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various scripts that automate the generation and publication of derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only affects the reputation of developers 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 modira-fuhopia-janadurai
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 modira-fuhopia-janadurai package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The modira-fuhopia-janadurai package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is essential for developers to take immediate action by removing the package and monitoring their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for modira-fuhopia-janadurai →
FAQ
The impact includes potential pollution of the npm registry, loss of developer reputation, and increased risk of dependency confusion.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the package, it is crucial to uninstall it immediately and monitor your project for any unusual behavior.
Yes, consider looking for other npm packages that provide similar functionality but have a good reputation and no known vulnerabilities.
Regularly audit your dependencies using tools like Vulert, and keep your packages updated to the latest secure versions.