Malicious Code Injection in Mathematical Dormouse Requirement Package
Summary
MAL-2025-95411: Malicious code in mathematical_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 'mathematical_dormouse_requirement' package is part of the npm ecosystem, often utilized for various mathematical computations and functionalities. However, this package has been identified as part of a malicious campaign that aims to manipulate npm's registry by flooding it with derivative packages. This vulnerability poses a significant risk to developers who may unknowingly use this package, as it can lead to reputation inflation and potential security breaches.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the 'mathematical_dormouse_requirement' package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which are then republished to the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also exposes developers to potential security risks, as the modified packages may contain harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mathematical_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, consider removing the 'mathematical_dormouse_requirement' package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall mathematical_dormouse_requirement'. Additionally, monitor your package-lock.json file for any unauthorized changes.
Conclusion
The 'mathematical_dormouse_requirement' package has been identified as a vector for malicious code injection, posing significant risks to developers and their projects. It is crucial to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for mathematical_dormouse_requirement →
FAQ
It is an npm package used for mathematical functions, but it has been compromised with malicious code.
It can lead to the introduction of malicious code into your project, potentially compromising security and integrity.
You should uninstall the package immediately and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Regularly update your dependencies, use tools like Vulert to monitor vulnerabilities, and review package sources before installation.