Malicious Code Injection in nokire-zabuza2: npm Package Vulnerability
Summary
MAL-2025-163507: Malicious code in nokire-zabuza2 (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-zabuza2 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 for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in nokire-zabuza2 is rooted in its malicious payload that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers and users by introducing untrusted code into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-zabuza2
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-zabuza2 package and monitor your project for any unintended dependencies that may have been introduced. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The nokire-zabuza2 package has been identified as containing malicious code that can compromise the integrity of projects using it. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for nokire-zabuza2 →
FAQ
Nokire-zabuza2 is an npm package associated with a token reward campaign that automates the generation of derivative packages.
The vulnerability can lead to the introduction of untrusted code into your project, potentially compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall nokire-zabuza2' and review your project for any other affected dependencies.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
No, there is no patch available for this package; the best course of action is to uninstall it.