Malicious Code Injection in dirty_walrus_z3n Package
Summary
MAL-2025-101601: Malicious code in dirty_walrus_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 dirty_walrus_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability in the dirty_walrus_z3n package stems from its inclusion in 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 compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dirty_walrus_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 dirty_walrus_z3n package and monitor your dependencies for any malicious activity. Use the following command to uninstall the package: npm uninstall dirty_walrus_z3n.
Conclusion
The dirty_walrus_z3n package poses a significant security risk due to its malicious nature. It is essential for developers to be vigilant about the packages they use and to take immediate action to remove any compromised packages. Utilizing tools like Vulert can aid in maintaining the security of your projects.
See every vulnerability recorded for dirty_walrus_z3n →
FAQ
The dirty_walrus_z3n package is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
Using the dirty_walrus_z3n package can lead to security risks, including the potential for malicious code execution and pollution of your project's dependencies.
If you have installed the dirty_walrus_z3n package, it is crucial to uninstall it immediately and monitor your project for any unusual behavior.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, tools like Vulert can help you monitor and alert for open-source vulnerabilities in your software without requiring access to your code or installation.