Malicious Code Injection in alert_stoat_z3n Package: npm Vulnerability Overview
Summary
MAL-2025-99344: Malicious code in alert_stoat_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 alert_stoat_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 and deployment of JavaScript applications. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry by publishing derivative packages with altered metadata. This vulnerability exposes developers to risks associated with reputation inflation and potential security breaches.
Vulnerability Detail
The vulnerability in the alert_stoat_z3n package originates from its association with the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. These packages contain scripts designed to automatically generate and publish derivative packages with randomized names, effectively polluting the npm registry. The malicious payload modifies the package.json file by removing private flags, changing version numbers, and continuously republishing variants, which can lead to a loss of trust in the npm ecosystem and potential exploitation of affected applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall alert_stoat_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 alert_stoat_z3n package and look for alternative packages that provide similar functionality without the associated risks. Always ensure to validate the integrity of packages before including them in your project.
Conclusion
The alert_stoat_z3n package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their applications. It is essential to take immediate action by removing the package and monitoring your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for alert_stoat_z3n →
FAQ
The alert_stoat_z3n package is a JavaScript package available on npm, primarily used for application development. However, it has been identified as part of a malicious campaign.
This vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
If you have installed the alert_stoat_z3n package, you should uninstall it immediately and look for alternative packages.
You can use Vulert to monitor your application for open-source vulnerabilities in real-time. Vulert uses package-lock.json to alert you about any vulnerabilities without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.