Malicious Code Injection in nokire-genji93: A Threat to npm Ecosystem
Summary
MAL-2025-162587: Malicious code in nokire-genji93 (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-genji93' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to the tea.xyz token reward campaign, which has been associated with the proliferation of malicious packages. The primary function of such packages is to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior poses a significant risk to the integrity of the npm registry and the security of applications relying on these packages.
Vulnerability Detail
The vulnerability in 'nokire-genji93' stems from its malicious payload 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 vulnerability is linked to a broader campaign aimed at exploiting the npm ecosystem for token rewards, making it a significant concern for developers and users alike.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji93
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 'nokire-genji93' package and replace it with a trusted alternative. Ensure that your project does not include any dependencies that may indirectly rely on this malicious package.
Conclusion
The 'nokire-genji93' package presents a significant security threat within the npm ecosystem due to its malicious behavior. Developers must take immediate action to remove this package and monitor their projects for any vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your applications.
See every vulnerability recorded for nokire-genji93 →
FAQ
The primary risk is that it modifies your package.json file and republishes malicious variants, which can compromise the integrity of your project and the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
You should uninstall the package immediately using the command 'npm uninstall nokire-genji93' and review your project's dependencies for any other vulnerabilities.
There are no patches available for the nokire-genji93 package as it is considered malicious. The best course of action is to remove it from your project.
Regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.