Malicious Code Exploit in northern_capybara_z3n: A Threat to npm Users
Summary
MAL-2025-88865: Malicious code in northern_capybara_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 northern_capybara_z3n is part of a larger ecosystem 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 publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses significant security risks to users who may unknowingly install these malicious packages.
Vulnerability Detail
The vulnerability in northern_capybara_z3n stems from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to the installation of compromised packages by unsuspecting developers. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes such malicious behavior.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall northern_capybara_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 northern_capybara_z3n package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package.json and package-lock.json files to identify and remove any suspicious packages.
Conclusion
The northern_capybara_z3n package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and republish variants. It is crucial to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for northern_capybara_z3n →
FAQ
northern_capybara_z3n is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The vulnerability can lead to the installation of compromised packages, which may contain malicious code that can harm your project or expose sensitive data.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected by this vulnerability without any signup.
If you have installed northern_capybara_z3n, you should uninstall it immediately using 'npm uninstall northern_capybara_z3n' and audit your project for any other potentially malicious packages.
Yes, tools like Vulert can help monitor your dependencies for vulnerabilities by analyzing your package-lock.json file and providing real-time alerts.