CVE-2026-31975 Details
Description
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.
A critical OS command injection vulnerability has been identified in Cloud CLI versions prior to 1.25.0. This issue allows for unauthenticated remote code execution via a WebSocket shell interface. The vulnerability arises because user-supplied data is directly interpolated into a bash command without proper sanitization, enabling arbitrary command execution on the host system. Additionally, the injection can exploit an insecure default JSON Web Token (JWT) secret, bypassing authentication checks and further facilitating the execution of malicious commands.
Users can update to Cloud CLI version 1.25.0 or later, where this vulnerability has been fixed. Additionally, it is recommended to set a strong, unique JWT_SECRET environment variable before deploying the application.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/siteboon/claudecodeui/security/advisories/GHSA-gv8f-wpm2-m5wr | CISA-ADP | ExploitVendor Advisory |
| https://github.com/siteboon/claudecodeui/commit/12e7f074d9563b3264caf9cec6e1b701c301af26 | [email protected] | Patch |
| https://github.com/siteboon/claudecodeui/releases/tag/v1.25.0 | [email protected] | Release Notes |
| https://github.com/siteboon/claudecodeui/security/advisories/GHSA-gv8f-wpm2-m5wr | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cloudcli cloud cli | < 1.25.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 20, 2026 | Initial Analysis | [email protected] |
| Mar 12, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | New CVE Received | [email protected] |