CVE-2026-96620
published critical CVSS 4.0 · 9.2Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| anthropics | — | claude-agent-sdk-python< 0.2.121 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| anthropics | claude-agent-sdk-python | < 0.2.121 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-20 CWE-20: Improper Input Validation
- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
4- https://github.com/anthropics/claude-agent-sdk-python/commit/347a1cb88d7652199399db1b7f914e0a459a6662
- https://github.com/anthropics/claude-agent-sdk-python/pull/1123
- https://github.com/anthropics/claude-agent-sdk-python/releases/tag/v0.2.121
- https://github.com/anthropics/claude-agent-sdk-python/security/advisories/GHSA-h4mw-j7qp-8mwm
Provider assertions
2GitHub_M · cna
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 17c1e4f25db67b56855af6dc2a7a0e2d72e9f940da897a800314723d7a01be5d
- Ingested
- 21 Oct 2026, 21:36:50 UTC
- Source record
- Official CVE record