CVE-2026-107286: Pydantic AI streamed requests leak concurrency slots, causing denial of service
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-107286
- Published
- Record updated
- Affected
- pydantic-ai >= 2.10.0, < 2.53.0
- pydantic-ai-slim >= 2.10.0, < 2.53.0
- Fixed in
- 2.53.0
- pydantic-ai 2.53.0 released October 1, 2026, 6 days before disclosure
- pydantic-ai-slim 2.53.0 released October 1, 2026, 6 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Pydantic AI versions 2.10.0 through 2.53.0 have a flaw in streamed requests made through ConcurrencyLimitedModel or limit_model_concurrency. Because anyio.CapacityLimiter ties an acquired slot to the borrowing task while streaming cleanup can run in a different task, early termination, cancellation, consumer exceptions, or complete stream_text() consumption with debounce_by=0.1 can leave shared concurrency slots occupied. Later requests on the long-lived limiter can then be blocked, causing a denial of service. Agent-level max_concurrency and non-streaming model requests are not affected.
Mitigation
Fixed in version 2.53.0.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 8 tracked dependents
Topics
Related items
- MediumCVE-2026-54038: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.9, GET…Similar attack · NVD/CVE Database
- MediumCVE-2026-54045: LibreChat password reset request deletes pending email verification tokensSimilar attack · NVD/CVE Database
- MediumCVE-2026-114499: codebase-memory-mcp gitignore matcher exponential backtracking stalls indexingSimilar attack · NVD/CVE Database
- MediumCVE-2026-114497: codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP…Similar attack · NVD/CVE Database
- HighCVE-2026-114494: codebase-memory-mcp query_graph stack overflow via oversized Cypher RETURNSimilar attack · NVD/CVE Database