Malicious Code Injection in nokire-genji24: A Threat to npm Users
Summary
MAL-2025-162511: Malicious code in nokire-genji24 (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-genji24' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. The primary function of this package is to generate and publish these derivatives, which can lead to reputation inflation for developers involved in the tea.xyz token reward campaign. The malicious nature of this package poses significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-genji24' originates from its design to automatically modify package.json files by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also compromises the security of applications that depend on these packages. The malicious payload can lead to unauthorized access, data breaches, and a general degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji24
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 'nokire-genji24' and any packages that depend on it. Regularly audit your package dependencies using tools like npm audit to identify and mitigate potential vulnerabilities.
Conclusion
The 'nokire-genji24' package poses a significant threat to the npm ecosystem due to its malicious behavior. Users are advised to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can enhance your security posture by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for nokire-genji24 →
FAQ
'nokire-genji24' is an npm package identified as part of a malicious campaign that floods the npm registry with derivative packages.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your application's security and integrity.
You should uninstall 'nokire-genji24' immediately using the command 'npm uninstall nokire-genji24' and audit your dependencies.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.