Malicious Code Injection in nokire-genji96 Package
Summary
MAL-2025-162590: Malicious code in nokire-genji96 (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 nokire-genji96 package is part of a series of 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 is intended to inflate developer reputation scores for rewards associated with the tea protocol.
Vulnerability Detail
The vulnerability in the nokire-genji96 package stems 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 and reputation damage for developers. The package is part of a broader trend of malicious packages that exploit npm's ecosystem for nefarious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji96
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 prevent the installation of this package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include nokire-genji96 or any of its derivatives.
Conclusion
The nokire-genji96 package poses a significant risk due to its malicious behavior of modifying package.json files and republishing variants. It is crucial for developers to remove this package and monitor their projects for any similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for nokire-genji96 →
FAQ
The nokire-genji96 package is an npm package that is part of a malicious campaign to manipulate the npm registry by creating and publishing numerous derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising your project's security and affecting its reputation.
You should uninstall the nokire-genji96 package immediately using the command npm uninstall nokire-genji96 and check for any dependencies that may be affected.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time. Vulert requires only the package-lock.json file to provide alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.