Malicious Code Injection in vicious_squirrel_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-91767: Malicious code in vicious_squirrel_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 package 'vicious_squirrel_z3n' is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing numerous derivative packages with randomized names. This behavior not only clutters the npm registry but also poses a significant risk to developers who may unknowingly incorporate these packages into their projects.
Vulnerability Detail
The vulnerability in 'vicious_squirrel_z3n' originates from its malicious intent to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on these packages. The malicious payload can affect developers' reputations and lead to security risks in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vicious_squirrel_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 'vicious_squirrel_z3n' package and look for alternative packages that provide similar functionality without the associated risks. Always review package details and community feedback before integrating any new dependencies.
Conclusion
The 'vicious_squirrel_z3n' package presents a significant threat to the npm ecosystem due to its malicious behavior aimed at inflating developer reputation scores. It is essential for developers to be vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications and maintain the integrity of their projects.
See every vulnerability recorded for vicious_squirrel_z3n →
FAQ
It is a malicious npm package designed to inflate developer reputation scores by automatically generating and publishing numerous derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and affecting your developer reputation.
You should uninstall the 'vicious_squirrel_z3n' package immediately using 'npm uninstall vicious_squirrel_z3n' and review your dependencies for any other malicious packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, consider looking for reputable packages that offer similar functionalities. Always check community reviews and the package's history before integrating.