Malicious Code Vulnerability in chain-cli-promised Package

chain-cli-promised Updated 19 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback