CVE-2026-143795

Pydantic AI JSON formatting could expand a bounded fetch into excessive work

Pydantic · pydantic-ai, pydantic-ai-slim

First documented disclosure · Review checkpoint

Summary

Large memory expansion and event-loop denial of service.

Severity and exploitation evidence

High · 7.5/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

JSON responses are parsed and reindented before the formatted-content cap on the event loop.

Conditions required

An agent invokes local web fetch against a malicious deeply nested JSON response.

Potential impact

Large memory expansion and event-loop denial of service.

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

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 and isolate untrusted fetch processing with explicit work and memory limits.

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. The affected implementation is the local fetch path, not provider-native web fetch. CVSS 3.1 7.5 is the maintainer advisory assessment.

Sources