Malicious Code Injection in coloured_mouse_requirement Package
Summary
MAL-2025-93632: Malicious code in coloured_mouse_requirement (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 coloured_mouse_requirement package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate certain functionalities within JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing system, leading to significant security risks for developers and users alike.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the coloured_mouse_requirement package, which is associated with the tea.xyz token reward campaign. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The result is a proliferation of derivative packages that can clutter the npm registry and potentially compromise the integrity of applications that depend on this package. The malicious payload can lead to unauthorized access, data breaches, and a compromised development environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall coloured_mouse_requirement
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, consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which allows you to check for vulnerabilities in your package-lock.json without requiring code access or installation.
Conclusion
The coloured_mouse_requirement package poses a significant security risk due to its malicious code that alters package configurations and proliferates harmful derivatives. It is essential for developers to take immediate action by removing this package and utilizing tools like Vulert to monitor their projects for vulnerabilities.
See every vulnerability recorded for coloured_mouse_requirement →
FAQ
It is an npm package used in JavaScript applications, but it has been identified as part of a malicious campaign.
The vulnerability can lead to unauthorized modifications in your package.json, potentially compromising your application's integrity and security.
You should uninstall the coloured_mouse_requirement package immediately and monitor your dependencies for any malicious activity.
Yes, you can use Vulert's playground to check your application for vulnerabilities without needing to sign up.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about known vulnerabilities in the packages you use.