CVE-2026-107287Pydantic Ai
Medium 6.5 No auth needed
Follow: this CVE · Pydantic · Pydantic Ai We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Oct 8, 2026
- Updated
- Oct 14, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 1.77.0 until 1.107.7 and 2.52.0, the local web_fetch_tool and the WebFetch local fallback can consume excessive CPU and memory during HTML-to-Markdown conversion of attacker-controlled HTML containing deeply nested block elements. Conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, allowing a model-directed fetch to delay other work in the process. Provider-native web fetching is not affected. This issue is fixed in versions 1.107.7 and 2.52.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 |
≥ 1.77.0 < 1.107.7 |
1.107.7 |
pip install "pydantic-ai>=1.107.7" |
| PyPI | pydantic-ai |
≥ 2.0.0b1 < 2.52.0 |
2.52.0 |
pip install "pydantic-ai>=2.52.0" |
| PyPI | pydantic-ai |
≥ 1.77.0 < 1.107.7 |
1.107.7 |
pip install "pydantic-ai>=1.107.7" |
| PyPI | pydantic-ai |
≥ 2.0.0b1 < 2.52.0 |
2.52.0 |
pip install "pydantic-ai>=2.52.0" |
| PyPI | pydantic-ai-slim |
≥ 1.77.0 < 1.107.7 |
1.107.7 |
pip install "pydantic-ai-slim>=1.107.7" |
| PyPI | pydantic-ai-slim |
≥ 2.0.0b1 < 2.52.0 |
2.52.0 |
pip install "pydantic-ai-slim>=2.52.0" |
| PyPI | pydantic-ai-slim |
≥ 1.77.0 < 1.107.7 |
1.107.7 |
pip install "pydantic-ai-slim>=1.107.7" |
| PyPI | pydantic-ai-slim |
≥ 2.0.0b1 < 2.52.0 |
2.52.0 |
pip install "pydantic-ai-slim>=2.52.0" |
Per OSV / GitHub Advisories (GHSA-v36g-jcw9-x7cw, PYSEC-2026-4281, PYSEC-2026-4290). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic_ai | ≥ 1.77.0 < 1.107.7 |
| pydantic | pydantic_ai | ≥ 2.0.0 < 2.52.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch Vendor Advisory
- github.com Patch Vendor Advisory
- github.com Patch Release Notes Vendor Advisory
- github.com Patch Release Notes Vendor Advisory
- github.com Vendor Advisory