Malicious Code Injection in dear_dormouse-notthedev Package
Summary
MAL-2025-101237: Malicious code in dear_dormouse-notthedev (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 dear_dormouse-notthedev package is part of the npm ecosystem, typically used for various development tasks. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities. This package is designed to inflate developer reputation scores through the automatic generation and publishing of derivative packages, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability stems from the package's involvement in the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. The malicious code modifies the package.json file by removing private flags, altering version numbers, and generating 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 polluting the registry with potentially harmful derivatives.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dear_dormouse-notthedev
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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include dear_dormouse-notthedev in its dependencies.
Conclusion
The dear_dormouse-notthedev package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their applications. It is crucial to take immediate action to remove this package and monitor for similar vulnerabilities in the future.
See every vulnerability recorded for dear_dormouse-notthedev →
FAQ
The package contains malicious code that modifies package.json 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 requiring any signup.
You should remove the package from your project and consider using a safer alternative.
Regularly monitor your dependencies using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Using compromised packages can lead to security breaches, data loss, and the introduction of malicious code into your applications.