Malicious Code Injection in musical_dormouse_requirement: A Threat to npm Packages
Summary
MAL-2025-95561: Malicious code in musical_dormouse_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 'musical_dormouse_requirement' package is a component within the npm ecosystem, primarily used for managing dependencies in JavaScript applications. It is designed to facilitate the integration of various functionalities into projects. However, this package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the creation of derivative packages with random names, leading to potential security risks for users.
Vulnerability Detail
The vulnerability originates from the 'musical_dormouse_requirement' package being associated with the tea.xyz token reward campaign. This campaign has been known to flood the npm registry with malicious packages that contain scripts designed to automatically publish derivative packages. These scripts modify the package.json file by removing private flags, altering version numbers, and generating random package names, which can lead to the pollution of the npm registry and compromise the integrity of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall musical_dormouse_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, you can remove the 'musical_dormouse_requirement' package from your project by executing the command: 'npm uninstall musical_dormouse_requirement'. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The 'musical_dormouse_requirement' package poses a significant security risk due to its association with malicious activities aimed at manipulating the npm registry. It is essential for developers to take proactive measures by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for musical_dormouse_requirement →
FAQ
The package contains malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Using this package can lead to security vulnerabilities, including the risk of your application being compromised or polluted with malicious packages.
Regularly updating your dependencies and using tools like Vulert to monitor for vulnerabilities can help mitigate risks.
If immediate updates are not possible, consider uninstalling the package and looking for alternative solutions until a secure version is available.