Command injection in AI agents

103 CVEs32 criticalUpdated October 22, 2026Source: NVDDownload CSV

68 CVEs in 2026

MonWedFri JanFebMarAprMayJunJulAugSepOct

October 2026

Oct 20
mcollina mcp-ripgrep5.3CVE-2026-113378

A security flaw has been discovered in mcollina mcp-ripgrep up to 0.4.0.

Oct 16
Claude Agent SDK9.2CVE-2026-96620

The resume option is passed to the Claude CLI as a separate token without validation, so a dash-leading value is parsed as an independent CLI flag.

Oct 16
Z.ai ZCode7.8CVE-2026-88755

Z.ai ZCode v3.11.2.6792 was discovered to automatically establish connections with MCP servers declared inside a repository's workspace configuration, possibly allowing attackers to execute arbitrary code…

Oct 16
Wheels CLI7.8CVE-2026-111451

Wheels CLI 4.0.0 through 4.1.1 insufficiently validates or escapes caller-supplied values and package contents.

Oct 14
Flyto2 Core8.4CVE-2026-55786

The HTTP MCP POST /mcp route accepts unauthenticated JSON-RPC tools/call requests and forwards execute_module arguments to the module registry without the require_auth dependency used by the REST execution…

Oct 12
mac-shell-mcp7.8CVE-2026-108953

mac-shell-mcp before 2.0.0 contains an OS command injection vulnerability that allows MCP clients to bypass the command whitelist by injecting shell metacharacters into execute_command arguments.

Oct 5
Langflow9.9CVE-2026-105740

Any authenticated Langflow user can achieve Remote Code Execution (RCE) on the server by adding an MCP server with the "Stdio" transport.

Oct 5
Langflow9.9CVE-2026-105697

The MCP stdio transport launched whatever command / args a user put in an MCP server configuration, with no allowlist and (before 1.10.3) wrapped in bash -c "exec {command} ...".

September 2026

Sep 28
Token Optimizer MCP8.4CVE-2026-55157

Token Optimizer MCP measures token savings per AI coding agent, optimizes context, and shares a live local knowledge graph across 16 CLI clients.

Sep 20
aiyiyi121 SxDevOps6.6CVE-2026-93965

A flaw has been found in aiyiyi121 SxDevOps 1.0/1.1.

Sep 15
Flowise8.5CVE-2026-91931

Flowise before 3.1.4 contains a remote code execution vulnerability in the Custom MCP node that allows authenticated attackers to execute arbitrary code by supplying npx package names in the mcpServerConfig…

Sep 14
GH05TCREW PentestAgent7.3CVE-2026-90617

A vulnerability was detected in GH05TCREW PentestAgent up to cf882dabea3ed91cef016cdd115e5426315665a2.

Sep 10
IBM Langflow OSS8.8CVE-2026-78575

IBM Langflow OSS 1.0.0 through 1.11.5 could allow a remote authenticated attacker to execute arbitrary commands due to improper validation of command-line arguments in the MCP stdio server configuration.

Sep 9
Amazon awslabs postgres-mcp-server9.6CVE-2026-87911

An OS command injection weakness in the read-only enforcement of the SQL validation component in Amazon awslabs postgres-mcp-server before 1.1.7 might allow an unauthenticated actor to execute operating…

Sep 8
GitHub Copilot5.3CVE-2026-81380

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to disclose information over a network.

August 2026

Aug 25
mcp-shell8.4CVE-2026-55582

The default security.yaml allows /usr/bin/git, while security.go omits ! from containsShellMetacharacters and containsDangerousShellConstructs and applies no per-executable argument policy.

Aug 25
mcp-shell8.4CVE-2026-55581

The default Docker security.yaml includes /bin/bash in allowed_executables, while security.go validates only the first token and checkBlockedPatternsAndCommands does not reject the shell command-mode flag -c.

Aug 25
mcp-shell8.6CVE-2026-55580

Config.go initializes Security.Enabled to false, and when MCP_SHELL_SEC_CONFIG_FILE is unset, main.go starts the documented bare-binary deployment without a security policy.

Aug 20
LangBot8.8CVE-2026-54449

Any authenticated user can add or change an STDIO MCP server configuration without an adequate authorization boundary.

Aug 20
Neo.mjs9.8CVE-2026-18482

Neo.mjs contains a command injection vulnerability within the FileSystemService.mjs component of the ai/mcp/server/file-system MCP server, where the checkSyntax() and runPlaywrightTest() functions unsafely…

Aug 11
Claude Code8.8CVE-2026-73222

The Claude Code Studio server launched by the --studio option in cli-tool/src/sandbox-server.js binds to all interfaces on port 3444, permits cross-origin requests, and requires no authentication.

Aug 11
GitHub Copilot7.8CVE-2026-70335

Improper neutralization of special elements used in an os command ('os command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to elevate privileges locally.

Aug 6
Kino-Kafkaesque ssh-mcp-server5.3CVE-2026-19039

A vulnerability was detected in Kino-Kafkaesque ssh-mcp-server up to 8ebbbb99b26f80ff6162fe00957c6dec73fbc5a5.

Aug 5
IBM Langflow OSS8.8CVE-2026-17623

IBM Langflow OSS 1.0.0 through 1.10.3 could allow a remote authenticated attacker to execute arbitrary commands due to improper validation of the command field in MCP server configurations.

July 2026

Jul 21
MCP-for-Stata9.3CVE-2026-47708

The `log_file_name` parameter in the `stata_do` API and CLI is directly interpolated into a Stata command string without sanitization.

Jul 17
Agentic-Flow8.8CVE-2026-58195

Agentic-flow MCP server tools in src/mcp/standalone-stdio.ts, src/mcp/fastmcp/servers/claude-flow-sdk.ts, src/mcp/fastmcp/servers/stdio-full.ts, src/mcp/fastmcp/servers/http-streaming-updated.ts,…

Jul 16
Claude Code5.3CVE-2026-47751

Because the action checked out attacker-controlled pull request head branches, read .mcp.json from the working directory via default setting sources, and unconditionally enabled all project MCP servers via…

Jul 15
LiteLLM9.8CVE-2026-30623

LiteLLM 1.18.10 contains a remote code execution vulnerability in its MCP server creation functionality.

Jul 9
Ruflo10.0CVE-2026-59726

Ruflo's default docker-compose deployment exposed the MCP bridge POST /mcp and POST /mcp/:group endpoints without authentication, allowing an unauthenticated network attacker to invoke tools/call to…

June 2026

Jun 29
Claude Code8.8CVE-2026-55607

Claude Code's worktree handling allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks.

Jun 25
Flowise9.8CVE-2025-71336

Flowise before 3.0.6 (affected versions 2.2.7-patch.1 and earlier) contains an unsandboxed remote code execution vulnerability in the Custom MCP feature, which is designed to execute OS commands such as…

Jun 24
Gemini CLI7.8CVE-2026-12537

Improper Neutralization used in an OS Command in the container launcher in Google Gemini CLI (versions prior to 0.39.1) and run-gemini-cli GitHub Action (versions prior to 0.1.22) on headless CI platforms…

Jun 23
Flowise9.9CVE-2026-56274

Flowise before 3.1.2 contains multiple OS command injection vulnerabilities in the Custom MCP Server feature due to incomplete command-flag validation and a regex bypass in local file access restrictions.

Jun 19
gin-vue-admin7.4CVE-2026-48787

An authenticated attacker with access to the code-generation feature and MCP management interface can exploit this vulnerability by injecting attacker-controlled Go source code through POST…

May 2026

May 27
claude-code-cache-fix7.8CVE-2026-45136

Tools/quota-statusline.sh (introduced in v3.5.0) interpolates Claude Code's hook stdin payload directly into a Python triple-quoted string literal.

May 11
automagik-genie8.1CVE-2026-30635

Command injection vulnerability in automagik-genie 2.5.27 MCP Server allows attackers to execute arbitrary commands via the view_task (aka view) in the readTranscriptFromCommit function in…

May 8
LiteLLM8.8CVE-2026-42271

Two endpoints used to preview an MCP server before saving it — POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list — accepted a full server configuration in the request body, including the…

May 5
Claude Code8.8CVE-2026-40068

The folder trust determination logic used the git worktree commondir file without validating its contents.

April 2026

Apr 21
Flowise9.9CVE-2026-40933

Due to unsafe serialization of stdio commands in the MCP adapter, an authenticated attacker can add an MCP stdio server with an arbitrary command, achieving command execution.

Apr 15
Upsonic9.8CVE-2026-30625

Upsonic 0.71.6 contains a remote code execution vulnerability in its MCP server/task creation functionality.

Apr 15
Agent Zero8.6CVE-2026-30624

Agent Zero 0.9.8 contains a remote code execution vulnerability in its External MCP Servers configuration feature.

Apr 15
LangChain-ChatChat8.6CVE-2026-30617

LangChain-ChatChat 0.3.1 contains a remote code execution vulnerability in its MCP STDIO server configuration and execution handling.

Apr 15
Jaaz7.3CVE-2026-30616

Jaaz 1.0.30 contains a remote code execution vulnerability in its MCP STDIO command execution handling.

Apr 15
Windsurf8.0CVE-2026-30615

A prompt injection vulnerability in Windsurf 1.9544.26 allows remote attackers to execute arbitrary commands on a victim system.

Apr 14
GitHub Copilot5.7CVE-2026-23653

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an authorized attacker to disclose information over a network.

Apr 12
chatboxai chatbox7.3CVE-2026-6130

A flaw has been found in chatboxai chatbox up to 1.20.0.

Apr 12
1Panel-dev MaxKB6.3CVE-2026-6108

A vulnerability was found in 1Panel-dev MaxKB up to 2.6.1.

Apr 11
aws-mcp-server AWS9.8CVE-2026-5059

aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability.

Apr 11
aws-mcp-server9.8CVE-2026-5058

aws-mcp-server Command Injection Remote Code Execution Vulnerability.

Apr 3
FastMCP6.7CVE-2025-64340

Server names containing shell metacharacters (e.g., &) can cause command injection on Windows when passed to fastmcp install claude-code or fastmcp install gemini-cli.

March 2026

Mar 23
Blinko7.2CVE-2026-23882

The MCP (Model Context Protocol) server creation function allows specifying arbitrary commands and arguments, which are executed when testing the connection.

Mar 11
Cloud CLI (aka Claude Code UI)9.8CVE-2026-31975

OS Command Injection via WebSocket Shell.

Mar 11
Cloud CLI (aka Claude Code UI)9.1CVE-2026-31862

Multiple Git-related API endpoints use execAsync() with string interpolation of user-controlled parameters (file, branch, message, commit), allowing authenticated attackers to execute arbitrary OS commands.

Mar 6
GitHub Copilot7.8CVE-2026-29783

The shell tool within GitHub Copilot CLI versions prior to and including 0.0.422 can allow arbitrary code execution through crafted bash parameter expansion patterns.

February 2026

Feb 11
sf-mcp-server7.5CVE-2026-26029

A command injection vulnerability exists in sf-mcp-server due to unsafe use of child_process.exec when constructing Salesforce CLI commands with user-controlled input.

Feb 10
GitHub Copilot8.8CVE-2026-21518

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.

Feb 10
GitHub Copilot8.8CVE-2026-21516

Improper neutralization of special elements used in a command ('command injection') in Github Copilot allows an unauthorized attacker to execute code over a network.

Feb 10
GitHub Copilot8.0CVE-2026-21257

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an authorized attacker to elevate privileges over a network.

Feb 10
GitHub Copilot8.8CVE-2026-21256

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an unauthorized attacker to execute code over a network.

Feb 6
Claude Code6.5CVE-2026-25723

Claude Code failed to properly validate commands using piped sed operations with the echo command, allowing attackers to bypass file write restrictions.

Feb 6
Claude Code9.1CVE-2026-25722

Claude Code failed to properly validate directory changes when combined with write operations to protected folders.

Feb 4
Godot MCP7.8CVE-2026-25546

A command injection vulnerability in godot-mcp allows remote code execution.

Feb 3
Claude Code8.8CVE-2026-24887

Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command.

January 2026

Jan 23
MCP Manager for Claude Desktop8.8CVE-2026-0757

MCP Manager for Claude Desktop execute-command Command Injection Sandbox Escape Vulnerability.

Jan 23
Ollama MCP Server9.8CVE-2025-15063

Ollama MCP Server execAsync Command Injection Remote Code Execution Vulnerability.

Jan 23
Framelink Figma MCP Server9.8CVE-2025-15061

Framelink Figma MCP Server fetchWithRetry Command Injection Remote Code Execution Vulnerability.

Jan 12
orval9.8CVE-2026-22785

orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification.

Jan 10
WeKnora9.9CVE-2026-22688

There is a command injection vulnerability that allows authenticated users to inject stdio_config.command/args into MCP stdio settings, causing the server to execute subprocesses using these injected values.

December 2025

Dec 30
Serverless Framework7.5CVE-2025-69256

A command injection vulnerability exists in the Serverless Framework's built-in MCP server package (@serverless/mcp).

Dec 17
Zed7.7CVE-2025-68433

Zed, a code editor, has an aribtrary code execution vulnerability in versions prior to 0.218.2-pre.

Dec 3
MCP Server Kubernetes6.4CVE-2025-66404

There is a security issue exists in the exec_in_pod tool of the mcp-server-kubernetes MCP Server.

Dec 3
Claude Code9.8CVE-2025-66032

Due to errors in parsing shell commands related to $IFS and short CLI flags, it was possible to bypass the Claude Code read-only validation and trigger arbitrary code execution.

Dec 1
MCP Watch9.8CVE-2025-66401

The MCPScanner class contains a critical Command Injection vulnerability in the cloneRepo method.

November 2025

Nov 30
HexStrike AI MCP server9.1CVE-2025-35028

By providing a command-line argument starting with a semi-colon ; to an API endpoint created by the EnhancedCommandExecutor class of the HexStrike AI MCP server, the resultant composed command is executed…

Nov 21
Claude Code9.8CVE-2025-64755

Due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system.

Nov 18
CVE-2025-636036.5

A command injection vulnerability exists in the MCP Data Science Server's (reading-plus-ai/mcp-server-data-exploration) 0.1.6 in the safe_eval() function (src/mcp_server_ds/server.py:108).

Nov 5
Cursor8.8CVE-2025-64109

A vulnerability in the Cursor CLI Beta allowed an attacker to achieve remote code execution through the MCP (Model Context Protocol) server mechanism by uploading a malicious MCP configuration in…

Nov 4
Cursor8.8CVE-2025-64106

An input validation flaw in Cursor's MCP server installation enables specially crafted deep-links to bypass the standard security warnings and conceal executed commands from users if they choose to accept…

October 2025

Oct 28
FastMCP7.8CVE-2025-62801

A command-injection vulnerability lets any attacker who can influence the server_name field of an MCP execute arbitrary OS commands on Windows hosts that run fastmcp install cursor.

Oct 3
Cursor8.8CVE-2025-61591

When MCP uses OAuth authentication with an untrusted MCP server, an attacker can impersonate a malicious MCP server and return crafted, maliciously injected commands during the interaction process, leading…

September 2025

Sep 25
ADB MCP Server9.8CVE-2025-59834

The MCP Server is written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation.

Sep 10
mcp-neo4j7.5CVE-2025-56406

An issue was discovered in mcp-neo4j 0.3.0 allowing attackers to obtain sensitive information or execute arbitrary commands via the SSE service.

Sep 8
@akoskm/create-mcp-server-stdio9.3CVE-2025-54994

The MCP Server is written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation.

Sep 4
Markdownify7.5CVE-2025-58358

Caused by the unsanitized use of input parameters within a call to child_process.exec, enabling an attacker to inject arbitrary system commands.

August 2025

Aug 28
LSTM-Kirigaya's openmcp-client7.3CVE-2025-58062

When users on a Windows platform connect to an attacker controlled MCP server, attackers could provision a malicious authorization server endpoint to silently achieve an OS command injection attack in the…

Aug 16
Claude Code7.5CVE-2025-55284

It's possible to bypass the Claude Code confirmation prompts to read a file and then send file contents over the network without user confirmation due to an overly broad allowlist of safe commands.

Aug 13
Cherry Studio9.6CVE-2025-54382

A remote code execution (RCE) vulnerability exists in the Cherry Studio platform when connecting to streamableHttp MCP servers.

Aug 13
Cherry Studio9.8CVE-2025-54074

Cherry Studio is vulnerable to OS Command Injection during a connection with a malicious MCP server in HTTP Streamable mode.

Aug 12
GitHub Copilot7.8CVE-2025-53773

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an unauthorized attacker to execute code locally.

Aug 6
agno-agi agno6.3CVE-2025-8665

A vulnerability, which was classified as critical, has been found in agno-agi agno up to 1.7.5.

Aug 5
Claude Code9.8CVE-2025-54795

An error in command parsing makes it possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command.

Aug 2
Cursor7.2CVE-2025-54136

Attackers can achieve remote and persistent code execution by modifying an already trusted MCP configuration file inside a shared GitHub repository or editing the file locally on the target's machine.

Aug 1
1Panel8.1CVE-2025-54424

The HTTPS protocol used for communication between the Core and Agent endpoints has incomplete certificate verification during certificate validation, leading to unauthorized interface access.

July 2025

Jul 21
Lara Translate MCP Server7.5CVE-2025-53832

Versions 0.0.11 and below contain a command injection vulnerability which exists in the @translated/lara-mcp MCP Server.

Jul 18
mcp-package-docs7.5CVE-2025-54073

A command injection vulnerability exists in the `mcp-package-docs` MCP Server prior to the fix in commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9.

Jul 14
GitHub Kanban MCP Server8.9CVE-2025-53818

Version 0.3.0 of the MCP Server is written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation.

Jul 9
mcp-remote9.6CVE-2025-6514

mcp-remote is exposed to OS command injection when connecting to untrusted MCP servers due to crafted input from the authorization_endpoint response URL

Jul 8
node-code-sandbox-mcp7.5CVE-2025-53372

A command injection vulnerability exists in the node-code-sandbox-mcp MCP Server.

Jul 8
MCP Server Kubernetes7.5CVE-2025-53355

A command injection vulnerability exists in the mcp-server-kubernetes MCP Server.

Jul 1
@cyanheads/git-mcp-server7.5CVE-2025-53107

There is a command injection vulnerability caused by the unsanitized use of input parameters within a call to child_process.exec, enabling an attacker to inject arbitrary system commands.

Jul 1
Codehooks.io MCP Server8.6CVE-2025-53100

The MCP server is written in a way that is vulnerable to command injection attacks as part of some of its MCP Server tools definition and implementation.

June 2025

Jun 26
iOS Simulator MCP Server (ios-simulator-mcp)6.0CVE-2025-52573

Versions prior to 1.3.3 are written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation.

May 2025

May 28
CVE-2025-52779.6

aws-mcp-server MCP server is vulnerable to command injection.