Malicious Code Injection in shallow_earwig_z3n Package
Summary
MAL-2025-90473: Malicious code in shallow_earwig_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 shallow_earwig_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the shallow_earwig_z3n package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to modify the package.json file by removing private flags, altering version numbers, and generating 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 tainted packages, potentially leading to reputation damage and security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shallow_earwig_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 workaround, you can temporarily avoid using the shallow_earwig_z3n package by removing it from your dependencies and replacing it with a trusted alternative. Additionally, regularly audit your npm packages using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The shallow_earwig_z3n package poses a significant security risk due to its malicious code injection. It is essential for developers to be vigilant about the packages they use and to regularly audit their dependencies to maintain the integrity of their applications.
See every vulnerability recorded for shallow_earwig_z3n →
FAQ
shallow_earwig_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
Using the shallow_earwig_z3n package can lead to the introduction of malicious code into your project, compromising its security and integrity.
If you have installed the shallow_earwig_z3n package, it is recommended to remove it immediately and check for any other affected packages in your project.
You can use tools like npm audit or services like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.