{
  "id": "claude-agent-sdk-cve-2026-96620",
  "name": "Claude Agent SDK session-ID MCP RCE (CVE-2026-96620)",
  "date_reported": "2026-10-16",
  "researcher": "moamenmahmood (HackerOne)",
  "org": "Anthropic (advisory) / HackerOne reporter",
  "sources": [
    {
      "url": "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
    }
  ],
  "magicsword_coverage": [],
  "borderline": false,
  "borderline_note": null,
  "ai_role": "ai_agent_or_mcp_as_target",
  "ai_role_secondary": null,
  "ai_role_detail": null,
  "technique_summary": "SDK passed untrusted resume session ID to Claude CLI. IDs starting with '-' become CLI flags, enabling --mcp-config with a stdio MCP server that launches at startup outside SDK permission controls. CVSS 9.2.",
  "initial_access": "Application must pass untrusted user-controlled session ID into resume",
  "ai_tooling_and_models": [
    "claude-agent-sdk < 0.2.121",
    "Claude CLI",
    "stdio MCP"
  ],
  "other_tooling": [],
  "victims_and_sectors": "Apps that let users pick/restore agent sessions",
  "regions": [
    "unknown"
  ],
  "attribution_or_cluster": "Vulnerability (not a named campaign)",
  "scale_and_metrics": "Fixed in 0.2.121 on 2026-07-17; advisory public 2026-10-16",
  "prevention_angle": "Upgrade SDK; validate CLI argv; treat attacker-touchable MCP config as code execution; app control on unexpected MCP-launched binaries",
  "related_magicsword_projects": [
    "LOLSkills"
  ],
  "source_notes": null,
  "last_reviewed": "2026-10-20",
  "attack_flow": {
    "nodes": [
      {
        "id": "step-1",
        "title": "Application accepts a session ID",
        "description": "An application passes an untrusted resume identifier into the SDK.",
        "kind": "access",
        "source_urls": [
          "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
        ]
      },
      {
        "id": "step-2",
        "title": "Identifier becomes a CLI flag",
        "description": "A leading hyphen causes the supplied value to be interpreted as command-line options.",
        "kind": "execution",
        "source_urls": [
          "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
        ]
      },
      {
        "id": "step-3",
        "title": "MCP configuration is injected",
        "description": "The argument selects a stdio MCP server configuration.",
        "kind": "ai",
        "source_urls": [
          "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
        ]
      },
      {
        "id": "step-4",
        "title": "Server launches outside controls",
        "description": "The MCP startup command executes outside the SDK permission boundary.",
        "kind": "impact",
        "source_urls": [
          "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
        ]
      }
    ],
    "edges": [
      {
        "source": "step-1",
        "target": "step-2"
      },
      {
        "source": "step-2",
        "target": "step-3"
      },
      {
        "source": "step-3",
        "target": "step-4"
      }
    ]
  },
  "atlas_techniques": [
    {
      "id": "AML.T0081",
      "rationale": "Attacker-controlled CLI arguments inject an MCP startup configuration.",
      "source_urls": [
        "https://github.com/advisories/GHSA-h4mw-j7qp-8mwm"
      ]
    }
  ],
  "category": "attacks-on-ai",
  "attribution": {
    "actor_name": "Vulnerability (not a named campaign)"
  },
  "ai_involvement_confidence": "confirmed",
  "detections": [
    {
      "name": "Review attack-specific indicators",
      "format": "guidance",
      "notes": "Monitor for the techniques described in Claude Agent SDK session-ID MCP RCE (CVE-2026-96620). Refer to sources for specific IOCs and TTPs."
    }
  ]
}