Malicious Code Injection in happy_wallaby_z3n: A Threat to npm Users
Summary
MAL-2025-94785: Malicious code in happy_wallaby_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
happy_wallaby_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to exploit the npm ecosystem by generating and publishing numerous derivative packages with altered metadata. The primary function of this package is to inflate developer reputation scores for token rewards associated with the tea.xyz protocol, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in happy_wallaby_z3n originates from its association with the tea.xyz token reward campaign, which has led to the creation of numerous malicious packages. These packages contain scripts that automatically modify the package.json file to remove private flags, change version numbers, and generate random package names. The continuous republishing of these variants pollutes the npm registry, potentially leading to security risks for developers who unknowingly integrate these packages into their projects. The malicious payload can compromise the integrity of applications using this package, making it essential for developers to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall happy_wallaby_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 happy_wallaby_z3n package altogether and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of packages before integrating them into your project.
Conclusion
The happy_wallaby_z3n package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. It is essential for developers to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for happy_wallaby_z3n →
FAQ
happy_wallaby_z3n is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the creation of numerous derivative packages.
The vulnerability can compromise the integrity of your application by introducing malicious code that modifies package metadata and republish variants, potentially leading to security risks.
You should immediately uninstall the package using 'npm uninstall happy_wallaby_z3n' and review your dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.