Malicious Code Detected in deques Package - Security Alert
Summary
MAL-2025-18299: Malicious code in deques (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 deques package is a JavaScript library used for creating and manipulating double-ended queues. It provides efficient methods for adding and removing elements from both ends of the queue, making it a popular choice for developers needing dynamic data structures. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that depend on it.
Vulnerability Detail
The vulnerability in the deques package stems 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 harmful actions within the affected systems. The malicious code was introduced in all versions starting from 0, making it imperative for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall deques
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 deques package from your project until a secure version is released. You can do this by executing the following command: npm uninstall deques. Alternatively, you may explore other queue management libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the deques package poses a serious threat to applications that rely on it. Users are urged to take immediate action by updating or removing the package to safeguard their systems. Utilizing tools like Vulert can help monitor for vulnerabilities and ensure ongoing security.
See every vulnerability recorded for deques →
FAQ
The deques package is a JavaScript library designed for creating and managing double-ended queues, allowing efficient operations on both ends of the queue.
The malicious code found in the deques package can lead to unauthorized access and potential data breaches in applications that utilize this library.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for vulnerabilities without needing to install any software.
If immediate updates are not feasible, consider removing the deques package from your project or using alternative libraries until a secure version is released.
Detailed information about this vulnerability can be found on the GitHub repository of the malicious packages project, which documents various security issues in open-source libraries.