Malicious Code Injection in nokire-genji49: A Threat to npm Users
Summary
MAL-2025-162538: Malicious code in nokire-genji49 (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-genji49' is part of a series of npm packages associated with 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 poses a significant risk to the integrity of the npm registry and the applications that depend on these packages.
Vulnerability Detail
The vulnerability in 'nokire-genji49' stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This leads to the continuous republishing of variants, effectively polluting the npm registry. The origin of this issue is linked to the tea.xyz token reward campaign, which incentivizes such behavior, potentially compromising the security and reliability of applications using these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji49
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 'nokire-genji49' and any other packages associated with the tea.xyz campaign. Regularly audit your npm packages using tools like 'npm audit' to identify and mitigate potential vulnerabilities.
Conclusion
The 'nokire-genji49' package poses a significant risk due to its malicious behavior aimed at manipulating the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for nokire-genji49 →
FAQ
'nokire-genji49' is an npm package that is part of a malicious campaign to inflate developer reputation scores through automated package publishing.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall 'nokire-genji49' immediately and check your package-lock.json for any references to it, removing them as necessary.
You can use tools like 'npm audit' to check for vulnerabilities in your dependencies. Additionally, services like Vulert can monitor your package-lock.json for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.