Malicious Code Injection in nokire-genji21: A Threat to npm Ecosystem
Summary
MAL-2025-162508: Malicious code in nokire-genji21 (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-genji21' 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. These packages are designed to inflate developer reputation scores through the automatic generation and publishing of numerous variants, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-genji21' stems from its malicious payload that modifies the package.json file by removing private flags and altering version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji21
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-genji21' and any packages that depend on it. Regularly audit your project's dependencies using 'npm audit' to identify and address any vulnerabilities.
Conclusion
The 'nokire-genji21' package poses a significant threat to the npm ecosystem due to its malicious behavior of generating and publishing compromised packages. It is crucial for developers to remove this package from their projects and stay vigilant by monitoring their dependencies for vulnerabilities.
See every vulnerability recorded for nokire-genji21 →
FAQ
'nokire-genji21' is an npm package that has been identified as part of a malicious campaign to flood the npm registry with derivative packages.
Using 'nokire-genji21' can compromise your project's security by introducing malicious code that alters your package configurations and potentially exposes your application to further vulnerabilities.
You should uninstall 'nokire-genji21' immediately using 'npm uninstall nokire-genji21' and review your project's dependencies for any other vulnerabilities.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application against known vulnerabilities using the Vulert playground without any signup.
Yes, tools like npm audit and Vulert can help you identify and manage vulnerabilities in your npm packages automatically.