CVE-2026-96620

CRITICAL CVSS 4.0: 9.2 EPSS 0.58%
Updated Oct 16, 2026
Python
Parameter Value
CVSS 9.2 (CRITICAL)
Fixed In 0.2.121
Type CWE-20 (Improper Input Validation), CWE-78 (OS Command Injection), CWE-88
Vendor Python
Public PoC No

Claude Agent SDK is a Python SDK for Claude Code. Prior to 0.2.121, 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. An attacker can inject the --mcp-config flag to define a stdio MCP server, causing arbitrary command execution at CLI startup outside the SDK permission controls.

The issue is exploitable when an application passes untrusted input as the session ID to resume. This issue is fixed in version 0.2.121.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products

anthropics:claude-agent-sdk-python