Malicious Code Detected in dormance Package - Security Alert
Summary
MAL-2025-18653: Malicious code in dormance (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 dormance package is an npm library designed for managing asynchronous operations in JavaScript applications. It provides developers with tools to simplify the handling of promises and callbacks. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the dormance package arises from the inclusion of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was identified in all versions starting from 0, indicating that any application relying on this package is at risk.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dormance
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 replacing the dormance package with an alternative library that provides similar functionality without the associated risks. Review your project's dependencies and ensure that you are not relying on compromised packages.
Conclusion
The discovery of malicious code in the dormance package highlights the importance of regularly auditing dependencies in software projects. Developers should take immediate action to remove or replace this package to safeguard their applications from potential threats.
See every vulnerability recorded for dormance →
FAQ
The dormance package is an npm library used for managing asynchronous operations in JavaScript applications.
The malicious code found in dormance can lead to unauthorized access and potential data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.
Currently, there is no patched version available. It is recommended to uninstall the package until a secure version is released.
If immediate removal is not possible, consider replacing it with a secure alternative library that offers similar functionality.