Command Injection Vulnerability in apiconnect-cli-plugins

apiconnect-cli-plugins Updated 02 Oct 2025

Summary

24/05/2021
No i
Critical
9.8

CVE-2020-7633: apiconnect-cli-plugins vulnerable to OS Command Injection. Affects apiconnect-cli-plugins versions < 6.0.1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

apiconnect-cli-plugins is an npm package used for managing plugins in the API Connect command-line interface. It provides functionality to install, update, and remove plugins. However, versions up to 6.0.1 are vulnerable to Command Injection, which allows an attacker to execute arbitrary commands by exploiting the pluginUri argument in the installPlugin function.

Vulnerability Detail

The Command Injection vulnerability in apiconnect-cli-plugins arises due to insufficient input validation. An attacker can craft a malicious pluginUri argument containing arbitrary commands, which are executed by the application. This can lead to unauthorized access, data leakage, or even complete compromise of the system. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can sanitize the pluginUri argument before passing it to the installPlugin function. This involves validating and filtering out any potentially malicious characters or commands. Here is an example of how to sanitize the pluginUri argument in Node.js:

const root = require('apiconnect-cli-plugins');
const payload = '& touch Song &';
const sanitizedPayload = payload.replace(/[&|;]/g, '');
root.pluginLoader.installPlugin(sanitizedPayload, '');

By removing the & and ; characters, the injection attempt is mitigated.

Conclusion

The Command Injection vulnerability in apiconnect-cli-plugins poses a critical security risk. It allows an attacker to execute arbitrary commands on the system, potentially leading to unauthorized access or complete compromise. It is crucial to upgrade to a patched version of the package and follow secure coding practices to prevent such vulnerabilities. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for apiconnect-cli-plugins →

Share this vulnerability

FAQ

apiconnect-cli-plugins is an npm package used for managing plugins in the API Connect command-line interface. It provides functionality to install, update, and remove plugins.

Command Injection is a security vulnerability where an attacker can execute arbitrary commands on a system by injecting malicious input into a command execution function.

The Command Injection vulnerability in apiconnect-cli-plugins can lead to unauthorized access, data leakage, or complete compromise of the system. An attacker can execute arbitrary commands with the privileges of the application, potentially gaining control over the entire system.

To fix this vulnerability, it is recommended to upgrade to a patched version of apiconnect-cli-plugins. Developers should update their package.json file to use a version higher than 6.0.1 and run npm install to fetch the latest version.

Yes, as a temporary workaround, developers can sanitize the pluginUri argument before passing it to the installPlugin function. By removing potentially malicious characters or commands, the injection attempt can be mitigated.

How To Fix

No fixed version is published for this vulnerability.

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