Malicious Code Injection in net_canid_z3n: A Threat to npm Packages
Summary
MAL-2025-95633: Malicious code in net_canid_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_canid_z3n package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package is associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. These packages often contain scripts that automatically generate and publish derivative packages, compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in net_canid_z3n stems from its 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 inflate developer reputation scores for token rewards, leading to pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's package management system for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall net_canid_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 remove the net_canid_z3n package from your project by executing the command: 'npm uninstall net_canid_z3n'. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The net_canid_z3n package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial to take immediate action by updating or removing the package to safeguard your project from potential risks.
See every vulnerability recorded for net_canid_z3n →
FAQ
net_canid_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your project's integrity and security.
If you have installed net_canid_z3n, it is recommended to uninstall the package immediately and check for any unauthorized changes in your project files.
You can use tools like Vulert, which monitors and alerts 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 if your application is affected by this vulnerability without needing to sign up.