CVE-2026-143790

Pydantic AI could resolve disallowed hosts before enforcing domain policy

Pydantic · pydantic-ai, pydantic-ai-slim, pydantic-ai-harness

First documented disclosure · Review checkpoint

Summary

DNS queries can expose encoded data even though the subsequent HTTP request is refused.

Severity and exploitation evidence

Low · 3.7/10 · CVSS 3.1. Severity source.

Exploitation not established: The original advisory establishes the weakness and controlled analysis; malicious exploitation or victim compromise is not established.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

Web and browser egress policy resolves a hostname before applying the configured domain allowlist.

Conditions required

An agent can be steered to use an attacker-controlled hostname and the deployment relies on strict domain restrictions.

Potential impact

DNS queries can expose encoded data even though the subsequent HTTP request is refused.

Affected versions and configurations

pydantic-ai: >= 1.77.0, <= 1.107.9; pydantic-ai: >= 2.0.0b1, <= 2.65.0; pydantic-ai-slim: >= 1.77.0, <= 1.107.9; pydantic-ai-slim: >= 2.0.0b1, <= 2.65.0; pydantic-ai-harness: >= 0.52.0, <= 0.65.0

Fix and mitigation status

pydantic-ai: 1.107.10; pydantic-ai: 2.66.0; pydantic-ai-slim: 1.107.10; pydantic-ai-slim: 2.66.0; pydantic-ai-harness: 0.66.0

Practical next steps

Upgrade the affected packages; custom refusal policies must set needs_resolution=False when no resolution is needed.

Operating lesson

Apply confidentiality, resource and authority checks at the final representation that crosses the trust boundary.

Evidence and limits

The original GHSA publication predates its December 3 CVE identity update. The current published GHSA explicitly supplies the CVE. Fresh CVE Program raw and API lookups returned no record; this does not establish RESERVED status or a CVE publication date. This is DNS egress, not demonstrated HTTP access to the refused host. Browser strict allowlists cover relevant request kinds; traffic already allowed by passive defaults is not the same bypass. CVSS 3.1 3.7 is the maintainer advisory assessment.

Sources