Malicious Code Injection in heavy_worm_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-103635: Malicious code in heavy_worm_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 heavy_worm_z3n is part of a series of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages. The malicious nature of heavy_worm_z3n lies in its capability to modify package.json files, remove private flags, and continuously republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in heavy_worm_z3n stems from its malicious payload that alters package.json files to remove private flags and changes version numbers. This behavior allows the package to generate random names, often themed around Indonesian culture, and republish these variants to the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms to inflate reputation scores. The ramifications include potential security risks for developers who inadvertently use these packages, as they may unknowingly contribute to the pollution of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall heavy_worm_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, avoid using the heavy_worm_z3n package and monitor your package-lock.json file for any unauthorized changes. You can also use tools like Vulert to monitor your dependencies for vulnerabilities. For example, you can check if your application is affected by visiting the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The heavy_worm_z3n package poses a significant threat to the npm ecosystem due to its malicious behavior of modifying package.json files and republishing variants. It is essential for developers to be vigilant and remove any instances of this package from their projects. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for heavy_worm_z3n →
FAQ
heavy_worm_z3n is an npm package involved in a malicious campaign to inflate developer reputation scores by publishing derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file and may expose your project to security risks by polluting the npm registry.
You should uninstall the package immediately using 'npm uninstall heavy_worm_z3n' and check for any unauthorized changes in your project.
Yes, you can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time. Visit Vulert Scanner to check your application.
Updating your packages to their latest versions can help mitigate vulnerabilities, but it is crucial to ensure that you are not using any compromised packages like heavy_worm_z3n.