Malicious Code Injection in noble_badger_z3n Package
Summary
MAL-2025-88859: Malicious code in noble_badger_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 noble_badger_z3n package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to inflate developer reputation scores through automated scripts that publish numerous variants of itself, leading to potential security risks.
Vulnerability Detail
The vulnerability in the noble_badger_z3n package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only pollutes the npm registry but also poses a risk of unintentional dependency inclusion in projects, which can lead to further exploitation or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall noble_badger_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 use the following command to prevent the installation of the noble_badger_z3n package in your project: 'npm install --no-save noble_badger_z3n'. However, the best approach is to completely remove the package.
Conclusion
The noble_badger_z3n package poses a significant security risk due to its malicious code injection practices. It is essential to remove this package from your projects and monitor for any potential vulnerabilities using tools like Vulert. Staying vigilant and proactive in managing dependencies is crucial for maintaining the security of your applications.
See every vulnerability recorded for noble_badger_z3n →
FAQ
The noble_badger_z3n package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
This vulnerability can lead to the inclusion of malicious code in your project, potentially compromising security and data integrity.
You should uninstall the noble_badger_z3n package immediately and check your project for any dependencies that may have been affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the 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 any signup.