Malicious Code Injection in surprising_badger_z3n Package
Summary
MAL-2025-109346: Malicious code in surprising_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 surprising_badger_z3n package is part of the npm ecosystem, which is widely used for JavaScript development. This package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious behavior includes modifying package metadata and continuously republishing variants to clutter the npm registry.
Vulnerability Detail
The vulnerability in the surprising_badger_z3n package stems from its association with a malicious campaign that modifies the package.json file to remove private flags and alters version numbers. It generates random package names and repackages them, leading to potential pollution of the npm registry. This behavior can compromise the integrity of the npm ecosystem, making it difficult for developers to trust the packages they are using.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall surprising_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 measure, avoid using the surprising_badger_z3n package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The surprising_badger_z3n package is associated with a malicious campaign that modifies package metadata and repackages it, posing a significant risk to the npm ecosystem. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities to maintain the integrity of your projects.
See every vulnerability recorded for surprising_badger_z3n →
FAQ
The surprising_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 pollution of the npm registry, making it difficult to trust the integrity of packages and potentially introducing malicious code into your project.
You should uninstall the surprising_badger_z3n package immediately using the command npm uninstall surprising_badger_z3n.
Yes, consider using other reputable packages that provide similar functionality without the associated risks of malicious behavior.
You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.