Malicious Code Injection in nokire-genji59: A Threat to npm Users
Summary
MAL-2025-162549: Malicious code in nokire-genji59 (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-genji59' is part of a series of malicious npm packages associated with 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 for token rewards but also poses significant risks to users who may unknowingly install these compromised packages.
Vulnerability Detail
The vulnerability in 'nokire-genji59' originates from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes variants to pollute the npm registry. This behavior can lead to the installation of untrusted code, potentially compromising the security of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji59
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 the 'nokire-genji59' package altogether. If it is a dependency of another package, consider looking for alternative packages that do not have known vulnerabilities. Additionally, you can use the following command to audit your npm packages for vulnerabilities: 'npm audit'.
Conclusion
The 'nokire-genji59' package poses a significant threat to npm users due to its malicious behavior. It is essential to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your dependencies.
See every vulnerability recorded for nokire-genji59 →
FAQ
'nokire-genji59' is an npm package that has been identified as malicious, part of a campaign to manipulate the npm registry.
If your application uses 'nokire-genji59', it may inadvertently execute malicious code, leading to potential security breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without requiring any signup.
Immediately uninstall the package using 'npm uninstall nokire-genji59' and audit your project for other vulnerabilities.
Yes, consider looking for other npm packages that provide similar functionality without the associated risks.