Malicious Code Injection in nokire-genji89: A Threat to npm Ecosystem
Summary
MAL-2025-162582: Malicious code in nokire-genji89 (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-genji89' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of such packages is to manipulate the npm registry for the purpose of inflating developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in 'nokire-genji89' 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 is part of a broader scheme to pollute the npm registry by continuously republishing variants of the package, thereby compromising the integrity of the ecosystem. The malicious payload can lead to unauthorized access and manipulation of projects that depend on this package, posing significant risks to developers and their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji89
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 prevent the installation of this malicious package by using npm's package-lock.json file to monitor your dependencies. Ensure that your project does not include 'nokire-genji89' and regularly audit your dependencies for any malicious packages.
Conclusion
The 'nokire-genji89' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate the registry. It is essential for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. Immediate action should be taken to remove this package from any affected projects.
See every vulnerability recorded for nokire-genji89 →
FAQ
'nokire-genji89' is an npm package that has been identified as containing malicious code intended to manipulate the npm registry.
You can check if your project is affected by using Vulert, which monitors your package-lock.json for vulnerabilities. Visit Vulert Scanner to use the Vulert playground without any signup.
If you have installed 'nokire-genji89', you should uninstall it immediately using 'npm uninstall nokire-genji89' and check your project for any unauthorized changes.
Yes, the impacts include unauthorized access to your project, potential data breaches, and the risk of your project being compromised through the polluted npm registry.
To prevent similar vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.