CVE-2026-65975: CWE-863: Incorrect Authorization in pydantic pydantic-ai
CVE-2026-65975 is an incorrect authorization vulnerability in pydantic-ai, a Python agent framework for Generative AI applications. In affected versions, certain UI adapters improperly sanitize client-submitted tool calls, allowing a remote client to trigger execution of registered server tools with client-supplied arguments, bypassing model-generated argument checks. This flaw is fixed in versions 1.107.1 and 2.5.0.
AI Analysis
Technical Summary
Pydantic AI versions 1.88.0 up to but not including 1.107.1 and 2.0.0b1 up to but not including 2.5.0 contain an authorization flaw in the UI adapters (AG-UI and Vercel AI). The sanitization process removes unresolved client tool calls based on a message index computed before sanitization, which can cause a preceding assistant response with an unresolved tool call to be dispatched without inspection. Consequently, a remote client can cause a registered, non-approval server tool to execute with client-supplied arguments instead of model-generated ones. This bypasses model-request hooks that normally gate tool execution. Tools requiring approval are not auto-executed via this path. The issue is fixed in versions 1.107.1 and 2.5.0.
Potential Impact
An attacker can remotely cause execution of registered server tools with arbitrary client-supplied arguments, bypassing model-generated argument validation and model-request hook protections. The impact depends on the functionality of the affected tools. Tools requiring explicit approval are not affected by this bypass. There is no indication of known exploits in the wild.
Mitigation Recommendations
Upgrade to pydantic-ai versions 1.107.1 or later, or 2.5.0 or later, where this issue is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated but the fix versions are known; therefore, updating to these versions is recommended.
CVE-2026-65975: CWE-863: Incorrect Authorization in pydantic pydantic-ai
Description
CVE-2026-65975 is an incorrect authorization vulnerability in pydantic-ai, a Python agent framework for Generative AI applications. In affected versions, certain UI adapters improperly sanitize client-submitted tool calls, allowing a remote client to trigger execution of registered server tools with client-supplied arguments, bypassing model-generated argument checks. This flaw is fixed in versions 1.107.1 and 2.5.0.
CVSS v3.1
Score 6.5medium
Affected software
pydantic
pydantic-ai
pydantic
pydantic-ai-slim
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pydantic AI versions 1.88.0 up to but not including 1.107.1 and 2.0.0b1 up to but not including 2.5.0 contain an authorization flaw in the UI adapters (AG-UI and Vercel AI). The sanitization process removes unresolved client tool calls based on a message index computed before sanitization, which can cause a preceding assistant response with an unresolved tool call to be dispatched without inspection. Consequently, a remote client can cause a registered, non-approval server tool to execute with client-supplied arguments instead of model-generated ones. This bypasses model-request hooks that normally gate tool execution. Tools requiring approval are not auto-executed via this path. The issue is fixed in versions 1.107.1 and 2.5.0.
Potential Impact
An attacker can remotely cause execution of registered server tools with arbitrary client-supplied arguments, bypassing model-generated argument validation and model-request hook protections. The impact depends on the functionality of the affected tools. Tools requiring explicit approval are not affected by this bypass. There is no indication of known exploits in the wild.
Mitigation Recommendations
Upgrade to pydantic-ai versions 1.107.1 or later, or 2.5.0 or later, where this issue is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated but the fix versions are known; therefore, updating to these versions is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-23T18:15:14.581Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6a61149c2644c7f8ff97df
Added to database: 07/29/2026, 20:22:44 UTC
Last enriched: 08/06/2026, 17:58:45 UTC
Last updated: 09/12/2026, 22:01:35 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.