Malicious Code Injection in ideal_gerbil_z3n: A Threat to npm Packages
Summary
MAL-2025-94911: Malicious code in ideal_gerbil_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
ideal_gerbil_z3n is an npm package that is part of a broader campaign aimed at manipulating the npm registry for token rewards. This package, like others in the campaign, is designed to generate and publish derivative packages with randomized names, which can inflate developer reputation scores. The malicious nature of this package poses significant risks to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability in ideal_gerbil_z3n originates from its association with a token reward campaign that floods npm with malicious packages. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random names for derivative packages. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The ramifications include a loss of trust in the npm ecosystem and possible exploitation of users who unknowingly install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ideal_gerbil_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 ideal_gerbil_z3n package and any packages that depend on it. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without needing to sign up.
Conclusion
The ideal_gerbil_z3n package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be aware of this vulnerability, remove the affected package, and utilize tools like Vulert to monitor for potential risks in their projects.
See every vulnerability recorded for ideal_gerbil_z3n →
FAQ
ideal_gerbil_z3n is an npm package associated with a malicious campaign designed to manipulate the npm registry for token rewards.
The vulnerability can lead to the installation of malicious packages that compromise your project's integrity and security.
You should uninstall the package immediately using the command npm uninstall ideal_gerbil_z3n.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.