CVE-2026-107286Pydantic Ai
High 7.5 No auth needed
Follow: this CVE · Pydantic · Pydantic Ai We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Oct 8, 2026
- Updated
- Oct 13, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-772
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pydantic Ai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pydantic-ai |
≥ 2.10.0 < 2.53.0 |
2.53.0 |
pip install "pydantic-ai>=2.53.0" |
| PyPI | pydantic-ai |
≥ 2.10.0 < 2.53.0 |
2.53.0 |
pip install "pydantic-ai>=2.53.0" |
| PyPI | pydantic-ai-slim |
≥ 2.10.0 < 2.53.0 |
2.53.0 |
pip install "pydantic-ai-slim>=2.53.0" |
| PyPI | pydantic-ai-slim |
≥ 2.10.0 < 2.53.0 |
2.53.0 |
pip install "pydantic-ai-slim>=2.53.0" |
Per OSV / GitHub Advisories (GHSA-6fqq-452j-qhrp, PYSEC-2026-4276, PYSEC-2026-4285). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic_ai | ≥ 2.10.0 < 2.53.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Vendor Advisory
- github.com Patch Release Notes Vendor Advisory
- github.com Mitigation Vendor Advisory