// Security Advisory Triage

Pydantic AI slot leak in streamed requests, patched in 2.53.0

GitHub advisories — pip · published 2026-10-09 13:20 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDCVE-2026-107286 published 8 October 2026. Pydantic AI versions before 2.53.0 fail to release concurrency slots when a streamed request ends early, allowing resource exhaustion on concurrency-limited models. Affects both pydantic-ai and pydantic-ai-slim packages.
WHY IT MATTERSServices using concurrency-limited models can be starved of available slots by clients that disconnect mid-stream, degrading or blocking legitimate requests. This is exploitable without authentication if your service accepts external requests.
WHAT TO DOUpgrade pydantic-ai or pydantic-ai-slim to 2.53.0. If you stream responses from models with concurrency limits, verify slot release behavior in your logs after patching — look for stuck requests or slot count drift.
Model-reported confidence 90% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-6fqq-452j-qhrp
+summary: Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
+severity: high
+published_at: 2026-10-08T19:42:55Z
+cve_id: CVE-2026-107286
+vulnerabilities[].package.name: pydantic-ai, pydantic-ai-slim
+vulnerabilities[].first_patched_version: 2.53.0, 2.53.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPydantic AI is a widely-used AI framework SDK. Resource exhaustion via streamed requests affects normal service operations.
signalsAI SDK advisory · concurrency/resource exhaustion vulnerability · high severity · pydantic-ai in dependency tree of AI services · patched version available
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)