Skip to content
MediumVulnerability

CVE-2026-65975: Pydantic AI UI adapters execute unresolved tool calls from client history

Identifier
CVE-2026-65975
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

Pydantic AI versions 1.88.0 up to 1.107.1 and 2.0.0b1 up to 2.5.0 have a flaw in the UI adapters (AG-UI via Agent.to_ag_ui()/AGUIAdapter, and VercelAIAdapter). When a trailing client message sanitizes to empty and is dropped, as with a client system message under manage_system_prompt='server', an assistant response with an unresolved tool call is dispatched without inspection. A remote client can thereby run a registered, non-approval server tool with client-supplied arguments. Applications that gate tools in before_model_request or after_model_request are most affected, since forged calls skip that guardrail; requires_approval=True tools are not auto-executed by this path.

Mitigation

Fixed in 1.107.1 and 2.5.0.