Malicious Code Injection in zesty_booby_z3n: A Threat to npm Packages
Summary
MAL-2025-97537: Malicious code in zesty_booby_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 zesty_booby_z3n is part of a larger campaign targeting the npm ecosystem, specifically linked to the tea.xyz token reward initiative. This package is designed to manipulate npm's publishing system by creating numerous derivative packages with random names, thereby inflating developer reputation scores for token rewards. The malicious nature of this package poses significant risks to developers and users alike, as it can lead to the proliferation of compromised packages in the npm registry.
Vulnerability Detail
The vulnerability in zesty_booby_z3n originates from its design to execute autopublish scripts that modify the package.json file. These modifications include removing private flags, altering version numbers, and generating random package names, which can lead to the pollution of the npm registry. The ramifications include potential security risks for users who unknowingly install these compromised packages, as well as damage to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zesty_booby_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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that you do not install any packages that are not explicitly listed in your package.json file. Additionally, you can utilize Vulert to check for vulnerabilities in your application without requiring access to the code or installation. Visit https://vulert.com/scanner to use the Vulert playground for real-time monitoring.
Conclusion
The zesty_booby_z3n package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package publishing. It is crucial for developers to be aware of this vulnerability and take appropriate actions to secure their projects. Regular monitoring and updates are essential to maintaining the integrity of your software.
See every vulnerability recorded for zesty_booby_z3n →
FAQ
zesty_booby_z3n is an npm package that is part of a malicious campaign aimed at manipulating the npm registry for token rewards.
The vulnerability can lead to the installation of compromised packages, which may introduce security risks and affect the integrity of your project.
You should update the package to a patched version if available or remove it from your project entirely.
You can use Vulert to monitor and alert 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 for vulnerabilities in your application without any signup.