Vulnerability GHSA-h4mw-j7qp-8mwm

Critical
CRITICAL RISK
CVSS Score: 9.5
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
4 hours ago
October 16, 2026 at 07:44 PM UTC
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
0.0.23 - 0.2.120
0.0.23 - 0.2.120

Summary

Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution

Details

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.

Impacted packages

Timeline

Published
4 hours ago
October 16, 2026 at 07:44 PM UTC
Fixed (0.2.121)
3 months ago
July 17, 2026 at 12:38 AM UTC
Last Modified
4 hours ago
October 16, 2026 at 08:00 PM UTC