Malicious Code Injection in stable_mouse_z3n Package
Summary
MAL-2025-96742: Malicious code in stable_mouse_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 stable_mouse_z3n package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others, is intended to provide developers with tools and functionalities to enhance their applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities to inflate developer reputation scores through the generation of derivative packages.
Vulnerability Detail
The vulnerability in the stable_mouse_z3n package originates from its association with the tea.xyz token reward campaign. This campaign utilizes autopublish scripts that modify the package.json file to remove private flags, alter version numbers, and create 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.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall stable_mouse_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 remove the stable_mouse_z3n package from your project by executing: npm uninstall stable_mouse_z3n. This will prevent any malicious code from executing until a fix is applied.
Conclusion
The stable_mouse_z3n package has been identified as a vector for malicious code injection due to its association with a token reward campaign. It is essential for developers to be vigilant, update their packages, and utilize monitoring tools like Vulert to safeguard their applications against such vulnerabilities.
See every vulnerability recorded for stable_mouse_z3n →
FAQ
stable_mouse_z3n is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
If you have installed the stable_mouse_z3n package, it is crucial to uninstall it immediately and check for any updates or patches.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground without any signup.
Regularly updating your dependencies, using tools like Vulert for monitoring, and conducting security audits can help prevent similar vulnerabilities.