Malicious Code Injection in nokire-genji42: A Threat to npm Ecosystem
Summary
MAL-2025-162531: Malicious code in nokire-genji42 (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 'nokire-genji42' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. This package, like others in the campaign, aims to inflate developer reputation scores for token rewards, but it does so by employing malicious tactics that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-genji42' stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, effectively polluting the npm registry. The origin of this issue is linked to the tea.xyz token reward campaign, which has flooded npm with similar malicious packages. The ramifications include potential security risks for developers and users who may unknowingly install these compromised packages, leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji42
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 measure, you can avoid using 'nokire-genji42' and any packages that depend on it. To uninstall the package, run the following command in your terminal: 'npm uninstall nokire-genji42'. This will help prevent any potential exploitation while you seek alternative solutions.
Conclusion
The 'nokire-genji42' package poses a significant threat to the npm ecosystem due to its malicious code that modifies project configurations and repopulates the npm registry with compromised packages. It is essential for developers to remove this package and monitor their dependencies for similar vulnerabilities.
See every vulnerability recorded for nokire-genji42 →
FAQ
'nokire-genji42' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the installation of compromised packages, which may modify your project's configuration and introduce security risks.
You should uninstall the package immediately using 'npm uninstall nokire-genji42' to mitigate any potential risks.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
Regularly auditing your dependencies and using tools like Vulert can help you stay informed about vulnerabilities and take proactive measures to secure your projects.