Malicious Code Injection in nokire-genji83: A Threat to npm Ecosystem
Summary
MAL-2025-162577: Malicious code in nokire-genji83 (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-genji83' is part of a series of malicious npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior not only inflates developer reputation scores but also poses significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-genji83' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This results in the continuous republishing of variants that pollute the npm registry, potentially leading to security risks for developers who unknowingly depend on these packages. The malicious scripts included in this package are designed to automate the process of creating and publishing these harmful derivatives.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji83
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 the 'nokire-genji83' package and any other packages associated with the tea.xyz token reward campaign. Monitor your package-lock.json file for any unauthorized changes and remove any suspicious packages immediately.
Conclusion
The 'nokire-genji83' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate the npm registry. It is essential for developers to remain vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, you can protect your projects from such threats.
See every vulnerability recorded for nokire-genji83 →
FAQ
'nokire-genji83' is a malicious npm package that is part of a campaign to inflate developer reputation scores through automated publishing of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially introducing security risks and instability in your project due to the presence of malicious packages.
You should immediately uninstall the 'nokire-genji83' package using 'npm uninstall nokire-genji83' and review your dependencies for any other malicious packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.
Yes, be cautious of other packages that appear to be part of the tea.xyz token reward campaign, as they may exhibit similar malicious behaviors.