CVE-2026-96620

Source
https://cve.org/CVERecord?id=CVE-2026-96620
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96620.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-96620
Aliases
Published
2026-10-16T19:44:01Z
Modified
2026-10-17T10:45:28Z
Severity
  • 9.2 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-20",
        "CWE-78",
        "CWE-88"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96620.json"
}
References

Affected packages

Git / github.com/anthropics/claude-agent-sdk-python

Affected ranges

Type
GIT
Repo
https://github.com/anthropics/claude-agent-sdk-python
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.2.121"
        }
    ],
    "source":  "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.0.16
v0.0.17
v0.0.18
v0.0.19
v0.0.20
v0.0.21
v0.0.22
v0.0.23
v0.1.0
v0.1.1
v0.1.10
v0.1.11
v0.1.12
v0.1.13
v0.1.14
v0.1.15
v0.1.16
v0.1.17
v0.1.19
v0.1.2
v0.1.20
v0.1.21
v0.1.23
v0.1.24
v0.1.25
v0.1.26
v0.1.27
v0.1.28
v0.1.29
v0.1.3
v0.1.30
v0.1.31
v0.1.32
v0.1.33
v0.1.34
v0.1.35
v0.1.36
v0.1.37
v0.1.38
v0.1.39
v0.1.4
v0.1.40
v0.1.41
v0.1.42
v0.1.43
v0.1.44
v0.1.45
v0.1.46
v0.1.47
v0.1.48
v0.1.49
v0.1.5
v0.1.50
v0.1.51
v0.1.52
v0.1.53
v0.1.54
v0.1.55
v0.1.56
v0.1.57
v0.1.58
v0.1.59
v0.1.6
v0.1.60
v0.1.61
v0.1.62
v0.1.63
v0.1.64
v0.1.65
v0.1.66
v0.1.67
v0.1.68
v0.1.69
v0.1.7
v0.1.70
v0.1.71
v0.1.72
v0.1.73
v0.1.74
v0.1.75
v0.1.76
v0.1.77
v0.1.78
v0.1.79
v0.1.8
v0.1.80
v0.1.81
v0.1.9
v0.2.100
v0.2.101
v0.2.102
v0.2.103
v0.2.104
v0.2.105
v0.2.106
v0.2.107
v0.2.108
v0.2.109
v0.2.110
v0.2.111
v0.2.112
v0.2.113
v0.2.114
v0.2.115
v0.2.116
v0.2.117
v0.2.118
v0.2.119
v0.2.120
v0.2.82
v0.2.83
v0.2.84
v0.2.85
v0.2.86
v0.2.87
v0.2.88
v0.2.89
v0.2.90
v0.2.91
v0.2.92
v0.2.93
v0.2.94
v0.2.95
v0.2.96
v0.2.97
v0.2.98
v0.2.99

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96620.json"