Skip to content

← Public intelligence

PyPI package

claude-agent-sdk

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.2PyPIAmendedPublished

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

    CVE-2026-96620 · GHSA-h4mw-j7qp-8mwm

    Affected
    • PyPI claude-agent-sdk < 0.2.121
    Fixed in
    0.2.121· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 0.2.121 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →