pypi package report

Is claude-agent-sdk safe?

1 known vulnerability, worst severity CRITICAL.

// reach

16 direct dependencies

5 carry known advisories, worst CRITICAL

22 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

No published models are known to use this package.


cvss
0.0
critical

severity out of 10

epss
not scored

chance of exploitation in 30 days

xyz score
0.0
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-h4mw-j7qp-8mwm, the advisory selected below

// 1 advisories

GHSA-h4mw-j7qp-8mwm

CRITICALCVE-2026-96620

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.

// cvss v4.0 vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
None
User interaction
None
Confidentiality (vulnerable system)
High
Integrity (vulnerable system)
High
Availability (vulnerable system)
High
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None

Checked 2026-10-17 at 08:01 UTC. The most recent advisory here was published 2026-10-16. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.