CVE-2026-107292Pydantic Ai
Medium 6.4 No auth needed
Follow: this CVE · Pydantic · Pydantic Ai We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 6.4
- 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:H/PR:N/UI:R/S:U/C:L/I:H/A:L
What happens
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 2.30.0, the Agent.to_web() and clai web development chat server does not validate the Host header, allowing a website visited by a developer to use DNS rebinding to reach a loopback-hosted agent as a same-origin service. The hostile page can read the served UI and submit chat requests that execute agent tools with the local process's privileges and credentials, causing data disclosure or unwanted side effects. Binding to localhost, Origin checks, and CSRF tokens do not prevent the same-origin DNS rebinding path. This issue is fixed in versions 1.107.5 and 2.30.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.34.0 < 1.107.5 |
1.107.5 |
pip install "pydantic-ai>=1.107.5" |
| PyPI | pydantic-ai |
≥ 2.0.0b1 < 2.30.0 |
2.30.0 |
pip install "pydantic-ai>=2.30.0" |
| PyPI | pydantic-ai |
≥ 1.34.0 < 1.107.5 |
1.107.5 |
pip install "pydantic-ai>=1.107.5" |
| PyPI | pydantic-ai |
≥ 2.0.0b1 < 2.30.0 |
2.30.0 |
pip install "pydantic-ai>=2.30.0" |
| PyPI | pydantic-ai-slim |
≥ 1.34.0 < 1.107.5 |
1.107.5 |
pip install "pydantic-ai-slim>=1.107.5" |
| PyPI | pydantic-ai-slim |
≥ 2.0.0b1 < 2.30.0 |
2.30.0 |
pip install "pydantic-ai-slim>=2.30.0" |
| PyPI | pydantic-ai-slim |
≥ 1.34.0 < 1.107.5 |
1.107.5 |
pip install "pydantic-ai-slim>=1.107.5" |
| PyPI | pydantic-ai-slim |
≥ 2.0.0b1 < 2.30.0 |
2.30.0 |
pip install "pydantic-ai-slim>=2.30.0" |
Per OSV / GitHub Advisories (GHSA-q2xc-rrxj-58x9, PYSEC-2026-4279, PYSEC-2026-4288). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic_ai | ≥ 1.34.0 < 1.107.5 |
| pydantic | pydantic_ai | ≥ 2.0.0 < 2.30.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