High severity · published Oct 8, 2026
CVE-2026-107286
Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
7.5
CVSS
0.4%
EPSS
No
On KEV
Description
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 2.10.0 until 2.53.0, streamed requests made through ConcurrencyLimitedModel or limit_model_concurrency can retain shared concurrency slots because anyio.CapacityLimiter associates an acquired slot with the borrowing task while streaming cleanup can run in a different task. Early stream termination, cancellation, consumer exceptions, or complete stream_text() consumption with debounce_by=0.1 can therefore leave capacity occupied, eventually preventing later requests that share the long-lived limiter from proceeding and causing a denial of service. Agent-level max_concurrency and non-streaming model requests are not affected. This issue is fixed in version 2.53.0.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 39% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
pydantic-ai · pydantic
>= 2.10.0, < 2.53.0 · source: vendor
PY
pydantic-ai-slim · pydantic
>= 2.10.0, < 2.53.0 · source: vendor
PA
Pydantic AI · Pydantic
2.10.0 before 2.53.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-107286
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-107286
x_refsource_CONFIRM
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-6fqq-452j-qhrp
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/pull/9478
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2
x_refsource_MISC
https://github.com/pydantic/pydantic-ai/releases/tag/v2.53.0
More from pydantic-ai
8.6
CVE-2026-25580
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI
7.6
CVE-2026-107295
`pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution
6.8
CVE-2026-107289
Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifier (incomplete fix for CVE-2026-46678 and CVE-2026-48782)
6.8
CVE-2026-54249
VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection
6.8
CVE-2026-48782
pydantic-ai: SSRF blocklist bypass via IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses (incomplete fix of CVE-2026-46678)
