MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-96620GHSA-h4mw-j7qp-8mwm

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

Not on CISA KEV
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)