CVE-2026-107288 Pydantic AI: web_fetch_tool blocked_domains bypass via a hostname the resolver normalizes differently

Low 3.7 Published Updated

Attackers can bypass domain blocking in Pydantic AI's web_fetch_tool using hostname normalization tricks to fetch restricted resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-107288?

CVE-2026-107288 is a low-severity server-side request forgery vulnerability in pydantic-ai, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-918, CWE-1289

Which versions are affected by CVE-2026-107288?

It affects 1 product.

Products include Pydantic Pydantic Ai.

How do I fix CVE-2026-107288?

Upgrade to a fixed version.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-107288 being exploited?

There is no known exploitation of CVE-2026-107288 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-BF25173, GHSA-22h6-qm39-v87j.

Is CVE-2026-107288 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free