Pydantic AI: web_fetch_tool blocked_domains bypass via a hostname the resolver normalizes differently
CVE-2026-107288Published 8 Oct 2026, 15:18 UTC
Real-world risk
1.1/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
3.7
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.77.0 until 1.107.6 and 2.44.0, the local web_fetch_tool and the WebFetch local fallback compare blocked_domains entries with a URL hostname before both values are normalized to the form used by getaddrinfo. An attacker-influenced model can use an equivalent IDNA spelling, non-ASCII label separator, case variation, or trailing root label that resolves to a blocked host but does not match the configured string, causing the application to fetch that host with its own privileges. allowed_domains fails closed for unmatched spellings, and private-IP and cloud-metadata protections remain effective. This issue is fixed in versions 1.107.6 and 2.44.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pydantic-aiNiche | >= 1.77.0, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
| pydantic-ai-slimNiche | >= 1.77.0, < 1.107.6; >= 2.0.0b1, < 2.44.0 | 1.107.6, 2.44.0 |
What to do
Update to a fixed version: 1.107.6, 2.44.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 33), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 8 Oct 2026 Published
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-918, CWE-1289
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-22h6-qm39-v87jvendor-advisory
- https://github.com/pydantic/pydantic-ai/pull/8407misc
- https://github.com/pydantic/pydantic-ai/pull/8409misc
- https://github.com/pydantic/pydantic-ai/pull/8421misc
- https://github.com/pydantic/pydantic-ai/commit/490335f8e2322e143a79337ddca9410e0176c812misc
- https://github.com/pydantic/pydantic-ai/commit/a9dab92099d0ef9d5d4aa34ccac8a6f1b0e51284misc
- https://github.com/pydantic/pydantic-ai/commit/c1f212a084cbfa0012f2044cdb4731d214b3b983misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6misc
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.44.0misc
- CVE-2026-107288 on CVE.org