Malicious Code Injection in statistical_egret_z3n Package
Summary
MAL-2025-96760: Malicious code in statistical_egret_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 statistical_egret_z3n package is part of the npm ecosystem, often used in JavaScript applications for statistical analysis. However, this package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through automated publishing of derivative packages. The malicious nature of this package compromises its integrity and poses significant risks to developers and users alike.
Vulnerability Detail
The vulnerability originates from the package being linked to a token reward campaign that floods the npm registry with malicious packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random names, leading to pollution of the npm registry. This can result in developers inadvertently using compromised packages, which may introduce security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall statistical_egret_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 statistical_egret_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project's dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The statistical_egret_z3n package poses significant security risks due to its malicious code designed to manipulate npm registry data. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities using tools like Vulert.
See every vulnerability recorded for statistical_egret_z3n →
FAQ
It is an npm package used for statistical analysis, but it has been identified as malicious.
Using this package can introduce security risks, including the potential for unauthorized code execution and data breaches.
Remove the package from your project and check for alternative packages. Monitor your dependencies for vulnerabilities.
You can use Vulert to monitor your package-lock.json file for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without requiring an account.