Malicious Code Injection in cautious_koala_z3n: A Threat to npm Packages
Summary
MAL-2025-100294: Malicious code in cautious_koala_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
cautious_koala_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. This package is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. Its functionality is compromised, making it a vector for malicious activities that can affect developers' reputations and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in cautious_koala_z3n originates from its involvement in the tea.xyz token reward campaign, which aims to inflate developer reputation scores through the automatic generation of numerous derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and creating random package names, leading to continuous republishing of these variants. This not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cautious_koala_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 cautious_koala_z3n package and consider using alternative packages that provide similar functionality without the associated risks. Regularly audit your package dependencies to ensure they are secure.
Conclusion
The cautious_koala_z3n package is a significant threat due to its malicious code that manipulates the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for cautious_koala_z3n →
FAQ
cautious_koala_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 pollution of the npm registry and may compromise the integrity of your project if you rely on affected packages.
You should uninstall the package immediately and check for any dependencies that may be affected.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.