Malicious Code Injection in nokire-genji19: A Threat to npm Ecosystem
Summary
MAL-2025-162505: Malicious code in nokire-genji19 (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-genji19' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing numerous derivative packages with randomized names. This behavior not only clutters the npm registry but also poses significant security risks to developers and their applications.
Vulnerability Detail
The vulnerability in 'nokire-genji19' originates from its malicious design, which includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This leads to the continuous republishing of these variants, polluting the npm registry and potentially allowing malicious actors to exploit these packages. The ramifications include compromised developer reputations and increased risk of dependency confusion attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji19
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-genji19' and any packages that depend on it. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'nokire-genji19' package presents a significant security risk due to its malicious design aimed at manipulating the npm ecosystem. It is crucial for developers to be vigilant and take necessary actions to remove such packages and monitor their dependencies for vulnerabilities.
See every vulnerability recorded for nokire-genji19 →
FAQ
'nokire-genji19' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry, compromising the integrity of your project and potentially allowing malicious code to be executed.
You should uninstall 'nokire-genji19' immediately using the command 'npm uninstall nokire-genji19' and check for any dependencies that may rely on it.
Regularly update your packages, monitor your dependencies for vulnerabilities, and consider using tools like Vulert to keep track of potential security issues.
Yes, you can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.