Malicious Code Injection in nokire-genji57 Package
Summary
MAL-2025-162547: Malicious code in nokire-genji57 (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-genji57 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores in exchange for token rewards. However, its functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the nokire-genji57 package stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to pollute the npm registry by continuously republishing variants, which can lead to reputational damage for developers and potential security risks for users who inadvertently install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji57
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-genji57 package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The nokire-genji57 package poses a significant security risk due to its malicious code that modifies package configurations and pollutes the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for nokire-genji57 →
FAQ
The nokire-genji57 package is an npm package that is part of a campaign to generate and publish derivative packages for token rewards, but it has been found to contain malicious code.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project by introducing malicious code that modifies your package configurations.
If you have installed the nokire-genji57 package, you should uninstall it immediately and check your project for any changes made to your package.json or package-lock.json files.
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.
Regularly audit your dependencies, keep your packages updated, and use tools like Vulert to monitor for vulnerabilities to help prevent similar issues in the future.