CVE-2026-143796

Pydantic AI local-URL mode missed Tencent metadata protection

Pydantic · pydantic-ai, pydantic-ai-slim

First documented disclosure · Review checkpoint

Summary

Metadata can be requested despite the metadata guard.

Severity and exploitation evidence

Medium · 6.8/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

The metadata denylist omits Tencent Clouds 169.254.0.23 endpoint.

Conditions required

Local URLs are explicitly allowed and a caller or agent can choose a web-fetch URL on a network reaching Tencent metadata.

Potential impact

Metadata can be requested despite the metadata guard.

Affected versions and configurations

pydantic-ai: >= 1.56.0, <= 1.107.9; pydantic-ai: >= 2.0.0b1, <= 2.65.0; pydantic-ai-slim: >= 1.56.0, <= 1.107.9; pydantic-ai-slim: >= 2.0.0b1, <= 2.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

Practical next steps

Upgrade, disable local-URL allowances where unnecessary and apply outbound metadata restrictions.

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. Default private-address blocking rejects this destination; this is not a default-policy bypass. CVSS 3.1 6.8 is the maintainer advisory assessment.

Sources