CVE-2026-107286
HIGH 7.5CVSS 3.1Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
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.
- Published
- 8 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-772
- Also known as
- GHSA-6fqq-452j-qhrpPYSEC-2026-4276PYSEC-2026-4285
- Sources
- NVDJSONOSV GHSA-6fqq-452j-qhrpJSONOSV PYSEC-2026-4276JSONOSV PYSEC-2026-4285JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:* |
>= 2.10.0, < 2.53.0 | 2.53.0 |
| OSV | PyPI | pydantic-ai | >= 2.10.0, < 2.53.0 | 2.53.0 |
| OSV | PyPI | pydantic-ai-slim | >= 2.10.0, < 2.53.0 | 2.53.0 |
References
- https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2 · Patch, WEB
- https://github.com/pydantic/pydantic-ai/pull/9478 · Patch, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.53.0 · Patch, Release Notes, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-6fqq-452j-qhrp · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-107286 · ADVISORY
- https://github.com/pydantic/pydantic-ai · PACKAGE
- https://pypi.org/project/pydantic-ai · PACKAGE
- https://github.com/advisories/GHSA-6fqq-452j-qhrp · ADVISORY
- https://pypi.org/project/pydantic-ai-slim · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 8 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2026)