Malicious Code Injection in net_parrot_z3n: A Threat to npm Packages
Summary
MAL-2025-88772: Malicious code in net_parrot_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 net_parrot_z3n package 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, notorious for flooding the npm registry with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability in net_parrot_z3n stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, contributing to the pollution of the npm registry. This behavior can lead to security risks, including the potential for unauthorized access to sensitive data and the compromise of developer environments. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall net_parrot_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 the net_parrot_z3n package by using npm's package-lock.json file to lock your dependencies. Additionally, consider using a tool like Vulert to monitor your project for vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The net_parrot_z3n package poses a significant threat due to its malicious code that alters package.json files and pollutes the npm registry. It is essential for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for net_parrot_z3n →
FAQ
net_parrot_z3n is an npm package that has been identified as malicious, part of a campaign to inflate developer reputation scores through the creation of derivative packages.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially exposing your project to security risks and affecting its integrity.
You should uninstall the net_parrot_z3n package immediately using 'npm uninstall net_parrot_z3n' and audit your project for any other vulnerabilities.
Regularly audit your dependencies using tools like npm audit, and consider using Vulert to monitor your project for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.