Malicious Code Injection in brilliant_mouse_z3n: A Threat to npm Packages
Summary
MAL-2025-93439: Malicious code in brilliant_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 package 'brilliant_mouse_z3n' is part of a larger ecosystem of npm packages that have been associated with the tea.xyz token reward campaign. This campaign has been known to flood the npm registry with packages that contain scripts designed to manipulate package metadata and inflate developer reputation scores. The primary functionality of these packages is to automate the generation and publication of derivative packages, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'brilliant_mouse_z3n' stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only compromises the integrity of the affected package but also poses a risk to the entire npm ecosystem by flooding it with potentially harmful derivatives. The malicious payload is designed to continuously republish variants, which can lead to confusion and misuse by developers relying on the npm registry for trustworthy packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall brilliant_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 measure, you can avoid using 'brilliant_mouse_z3n' and any other packages associated with the tea.xyz token reward campaign. You can also use the following command to uninstall the package: npm uninstall brilliant_mouse_z3n.
Conclusion
The 'brilliant_mouse_z3n' package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to be vigilant and remove such packages from their projects. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for brilliant_mouse_z3n →
FAQ
The package contains malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using the command: npm uninstall brilliant_mouse_z3n.
Yes, using this package can lead to the pollution of the npm registry and potential security risks for your application.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.