Malicious Code Injection in nokire-genji43: A Threat to npm Packages
Summary
MAL-2025-162532: Malicious code in nokire-genji43 (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-genji43' 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. The malicious behavior of this package poses a significant risk to the integrity of the npm registry and developers' projects.
Vulnerability Detail
The vulnerability in 'nokire-genji43' originates from its design to include autopublish scripts that modify the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also compromises the security of applications relying on this package, potentially introducing malicious code into their environments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-genji43
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 'nokire-genji43' and any packages that depend on it. Regularly audit your npm packages using 'npm audit' to identify and address vulnerabilities in your project.
Conclusion
The 'nokire-genji43' package poses a significant threat due to its malicious code that modifies package configurations and repopulates the npm registry with harmful variants. Developers must take immediate action to remove this package and monitor their projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for nokire-genji43 →
FAQ
'nokire-genji43' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated package publishing.
The vulnerability can introduce malicious code into your application, compromise its security, and pollute the npm registry with unwanted packages.
You should uninstall the package immediately using 'npm uninstall nokire-genji43' and check for any dependencies that may be affected.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can also check your application against vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like npm audit, and stay informed about known vulnerabilities in the packages you use.