Malicious Code Injection in nokire-genji82: A Threat to npm Packages
Summary
MAL-2025-162576: Malicious code in nokire-genji82 (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-genji82' is part of a series of malicious 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 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-genji82' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to the installation of compromised packages by unsuspecting developers. The ramifications include exposure to malicious code and the risk of reputation damage for developers who unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji82
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, avoid using 'nokire-genji82' and any other packages that may be part of the tea.xyz token reward campaign. Regularly audit your dependencies to ensure that no malicious packages are present. You can also use tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The 'nokire-genji82' package poses a significant security risk due to its malicious behavior of modifying package files and republishing variants. Developers should take immediate action to remove this package and monitor their dependencies to safeguard their applications.
See every vulnerability recorded for nokire-genji82 →
FAQ
'nokire-genji82' is an npm package identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the installation of malicious code, which may compromise your application's security and integrity.
You should uninstall 'nokire-genji82' immediately and check your package-lock.json file for any references to this package.
Regularly audit your dependencies, use trusted sources for packages, and employ tools like Vulert to monitor for vulnerabilities in real-time.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check for vulnerabilities without needing to install anything by using the Vulert playground.