CVE-2026-142786
Pydantic AI history compaction could expose a client-supplied tool call
Pydantic · pydantic-ai-slim, pydantic-ai
First documented disclosure · Review checkpoint
Summary
A client-supplied tool call can execute without a new model decision.
Severity and exploitation evidence
Medium · 5.4/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.
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 UI adapter checks for dangling tool calls before dropping a client compaction boundary, exposing a tail tool call afterward.
Conditions required
The server supplies nonempty message_history and manages the system prompt; an attacker controls the appended client history.
Potential impact
A client-supplied tool call can execute without a new model decision.
Affected versions and configurations
pydantic-ai-slim: >= 2.27.0, <= 2.57.0; pydantic-ai: >= 2.27.0, <= 2.57.0
Fix and mitigation status
pydantic-ai-slim: 2.58.0; pydantic-ai: 2.58.0
Practical next steps
Upgrade to 2.58.0 and validate the final reconstructed history before tool dispatch.
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. Tool argument validation, approvals and before_tool_execute remain enforced; model hooks can be bypassed. This is not a universal approval bypass. CVSS 3.1 5.4 is the maintainer advisory assessment.
Sources
- Original Pydantic maintainer advisory
Primary source ·