Malicious Code Vulnerability in chain-cli-promised Package
Summary
MAL-2026-1687: Malicious code in chain-cli-promised (npm). Affects chain-cli-promised versions 2.3.5. 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 chain-cli-promised package is an npm library that facilitates the use of promises in command-line interfaces. It is designed to simplify asynchronous operations in Node.js applications. However, this package has been identified as containing malicious code, which poses a significant risk to users who rely on it for their projects.
Vulnerability Detail
The vulnerability stems from malicious code embedded within version 2.3.5 of the chain-cli-promised package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other harmful effects. The malicious nature of the code was identified by ReversingLabs, highlighting the importance of scrutinizing dependencies in software development.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall chain-cli-promised
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, users can remove the chain-cli-promised package from their project until a safe version is confirmed. This can be done using the command: npm uninstall chain-cli-promised. Alternatively, consider using a different package that offers similar functionality without the associated risks.
Conclusion
The chain-cli-promised package has been found to contain malicious code, posing a significant risk to users. It is essential to update to a patched version or remove the package to mitigate potential security threats. Regular monitoring of dependencies is crucial for maintaining application security.
See every vulnerability recorded for chain-cli-promised →
FAQ
chain-cli-promised is an npm library designed to simplify the use of promises in command-line interfaces for Node.js applications.
The malicious code was identified by ReversingLabs, which specializes in analyzing software for security vulnerabilities.
Using the compromised version can lead to unauthorized access to sensitive data, data breaches, and other security threats.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If immediate updates are not possible, consider removing the package or using an alternative library until a safe version is available.