Malicious Code Injection in shallow_crow_z3n Package - npm Vulnerability
Summary
MAL-2025-108601: Malicious code in shallow_crow_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_crow_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 generating and publishing numerous derivative packages with altered names and metadata. The primary functionality of this package is to serve as a token reward mechanism, but it has been compromised to inflate developer reputation scores fraudulently.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the shallow_crow_z3n package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential security risks for developers who unknowingly use these compromised packages. The ramifications include loss of trust in the npm ecosystem, potential exposure to further attacks, and the degradation of developer reputation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shallow_crow_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 shallow_crow_z3n package and monitor your project's dependencies for any malicious activity. Additionally, consider using tools like Vulert to monitor your package-lock.json file for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The shallow_crow_z3n package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their projects. It is crucial to remove this package and monitor for vulnerabilities to maintain the integrity of your software.
See every vulnerability recorded for shallow_crow_z3n →
FAQ
The shallow_crow_z3n package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of numerous derivative packages.
This vulnerability can lead to the pollution of the npm registry, potential exposure to further attacks, and loss of trust in the packages you are using.
You should remove the shallow_crow_z3n package from your project and monitor your dependencies for any malicious activity.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.