CVE-2026-96620

Critical

Description

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.

SeverityCritical
CVSS9.2
Exploit probability—
ProductClaude-agent-sdk
PublishedOct 16, 2026
First seenOct 16, 2026

How to fix

Update
  • claude-agent-sdk0.2.121 or later

Affected products

ProductAffected versionsFixed in
claude-agent-sdkPyPIv < 0.2.1210.2.121

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.