Malicious Code Injection in electoral_wolverine_z3n Package
Summary
MAL-2025-102015: Malicious code in electoral_wolverine_z3n (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 electoral_wolverine_z3n package is part of a broader ecosystem of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. This behavior raises significant concerns regarding the integrity and security of the npm registry.
Vulnerability Detail
The vulnerability in the electoral_wolverine_z3n package stems from its malicious payload, which 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 that pollute the npm registry, potentially compromising the security of applications that depend on this package. The origin of this vulnerability is linked to automated scripts that are part of the malicious campaign targeting npm.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall electoral_wolverine_z3n
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 electoral_wolverine_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The electoral_wolverine_z3n package poses a significant security risk due to its malicious code that modifies package configurations and repopulates the npm registry with potentially harmful variants. It is essential to remove this package from your projects and monitor for vulnerabilities using tools like Vulert.
See every vulnerability recorded for electoral_wolverine_z3n →
FAQ
The electoral_wolverine_z3n package is an npm package associated with the tea.xyz token reward campaign, designed to automate the creation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the security of applications that rely on this package by introducing malicious code.
You should uninstall the electoral_wolverine_z3n package immediately using 'npm uninstall electoral_wolverine_z3n' and monitor your dependencies for any further vulnerabilities.
Yes, you can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.