Medium [CVE-2026-65975] Remote clients can execute server tools with forged arguments due to improper message sanitization.
This medium-severity Red Hat Linux advisory covers CVE-2026-65975 affecting Lightspeed Core.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI.
In versions 1.88.0 up to but not including 1.107.1 and 2.0.0b1 up to but not including 2.5.0, the UI adapters (AG-UI via Agent.to_ag_ui()/AGUIAdapter, and Vercel AI via VercelAIAdapter) use sanitize_messages to strip unresolved ("dangling") client-submitted tool calls from untrusted message history before it reaches the agent, a defense-in-depth default that prevents the agent from executing tool calls the model never emitted.
However, the strip anchored to a message index computed before sanitization ran, so when a trailing client message sanitized to empty and was dropped (for example a client system message under the default manage_system_prompt='server'), a preceding assistant response carrying an unresolved tool call became the new tail and was dispatched without inspection.
As a result, a remote client could cause a registered, non-approval server tool to run with client-supplied arguments rather than arguments the model produced.
The impact is bounded by what the affected tools do and is most significant for applications that gate tool execution in a model-request hook (before_model_request / after_model_request), since a forged call skips the model turn and bypasses that guardrail; approval-gated tools (requires_approval=True) are not auto-executed by this path.
- < 1.88.0
- < 1.107.1
- < 2.0.0b1
- < 2.5.0
Official advisory · high-confidence parse· fetched 2 days ago·verify at source
- 1.107.1
- 2.5.0
Official advisory · high-confidence parse· fetched 2 days ago·verify at source
Mitigation checklist
- Configure Pydantic AI tools to require explicit approval for execution. This prevents remote clients from automatically executing server tools with forged arguments, as approval-gated tools are not affected by this vulnerability. Additionally, restrict network access to the Pydantic AI application to trusted clients only, if feasible in your environment.
Official advisory · high-confidence parse· fetched 2 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.