criticalVulnerability

CVE-2026-96620

The Claude Agent SDK for Python passed the `resume` option to the Claude CLI without validation, allowing a value beginning with `-` to be interpreted as a separate CLI flag. An attacker who controlled the `resume` value could inject an `--mcp-config` flag defining a stdio MCP server, resulting in arbitrary command execution at CLI startup that bypassed the SDK's permission controls. Exploitation required an application to pass untrusted input as the session ID to resume. Users are advised to update to the latest version of the claude-agent-sdk package. Thank you to hackerone.com/moamenmahmood for reporting this issue.

Properties

ghsa_id
GHSA-h4mw-j7qp-8mwm
severity
critical
summary
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
last_source
GitHub Advisory Database
cve_id
CVE-2026-96620
signal_observed_at
2026-10-16T22:27:05+00:00
is_ghsa_only
false
retrieved_at
2026-10-16T22:34:19+00:00
ghsa_published
2026-10-16T19:44:37Z
source_url
https://github.com/advisories/GHSA-h4mw-j7qp-8mwm
ghsa_updated
2026-10-16T19:44:38Z

Related Entities (6)

VULNERABLE_TO (1)

←[Software]pip/claude-agent-sdk

AFFECTS (1)

→[Software]pip/claude-agent-sdk

HAS_WEAKNESS (3)

→[Weakness]Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
→[Weakness]Improper Input Validation
→[Weakness]Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

REPORTED_BY (1)

→[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-96620 — Ninja Signal Threat Intelligence | Ninja Signal