3 matches found
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
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...
CVE-2026-96620
The Claude Agent SDK (a Python SDK for Claude Code) is vulnerable to argument injection in versions prior to 0.2.121 . The root cause is the lack of validation on the resume option , where a dash-leading value is incorrectly parsed as an independent CLI flag. An attacker providing untrusted input...
PT-2026-116154
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, causin...