Malicious Code Injection in zesty_python_z3n: A Threat to npm Users
Summary
MAL-2025-97543: Malicious code in zesty_python_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_python_z3n is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised by the presence of malicious scripts that manipulate its metadata and behavior.
Vulnerability Detail
The vulnerability in zesty_python_z3n arises from the inclusion of malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to create derivative packages that clutter the npm registry, potentially leading to security risks and reputation damage for developers. The malicious payload is part of a broader scheme to exploit the npm ecosystem for token rewards.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall zesty_python_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 measure, you can avoid using zesty_python_z3n in your project until a secure version is released. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities. You can check for affected packages using the Vulert playground at https://vulert.com/scanner without needing to sign up.
Conclusion
The zesty_python_z3n package poses a significant risk due to its malicious code that alters package metadata and publishes derivative packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for zesty_python_z3n →
FAQ
zesty_python_z3n is an npm package that has been identified as containing malicious code designed to manipulate package metadata.
The vulnerability can lead to unauthorized changes in your project's dependencies, potentially introducing security risks and cluttering the npm registry.
You should uninstall the package immediately using 'npm uninstall zesty_python_z3n' and monitor your project for any further vulnerabilities.
Regularly audit your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time based on your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without needing to create an account.