← AI agent vulnerabilities

CVE-2026-31975

Cloud CLI (aka Claude Code UI)

9.8
Severity
Critical
Published
March 11, 2026
Last modified
June 17, 2026

Cloud CLI (aka Claude Code UI) is a desktop and mobile UI for Claude Code, Cursor CLI, Codex, and Gemini-CLI. Prior to 1.25.0, OS Command Injection via WebSocket Shell. Both projectPath and initialCommand in server/index.js are taken directly from the WebSocket message payload and interpolated into a bash command string without any sanitization, enabling arbitrary OS command execution. A secondary injection vector exists via unsanitized sessionId. This vulnerability is fixed in 1.25.0.

CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness

References

CVE-2026-31975 on NVD

Listed in

CriticalMCP serversCommand injection

More Cloud CLI (aka Claude Code UI) CVEs

Mar 11
CVE-2026-318629.1

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 11
CVE-2026-318618.8

The /api/user/git-config endpoint constructs shell commands by interpolating user-supplied gitName and gitEmail values into command strings passed to child_process.exec().