Malicious Code Injection in quaint_canid_z3n: A Threat to npm Packages
Summary
MAL-2025-96128: Malicious code in quaint_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
quaint_canid_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. This package, like others involved in the tea.xyz token reward scheme, is designed to manipulate the npm registry by generating and publishing numerous derivative packages with altered names and metadata. Its primary function is to inflate developer reputation scores for token rewards, which poses a significant risk to the integrity of the npm registry.
Vulnerability Detail
The vulnerability in quaint_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 leads to the continuous republishing of these variants, effectively polluting the npm registry. Originating from a campaign aimed at exploiting npm for token rewards, this vulnerability can result in developers unintentionally using compromised packages, leading to potential security risks and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall quaint_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 avoid using the quaint_canid_z3n package and any other packages that may be part of the tea.xyz token reward campaign. Regularly audit your npm packages using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The quaint_canid_z3n package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for quaint_canid_z3n →
FAQ
quaint_canid_z3n is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the introduction of compromised packages into your project, potentially exposing it to security risks.
You should uninstall the package immediately using the command npm uninstall quaint_canid_z3n.
You can use tools like npm audit or services like Vulert, which monitors your package-lock.json 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 requiring any signup.