Skip to main content
EPSS 0.2%top 90%

CVE-2026-65975: CWE-863: Incorrect Authorization in pydantic pydantic-ai

0
Medium
VulnerabilityCVE-2026-65975cvecve-2026-65975cwe-863
Published: 07/29/2026 (07/29/2026, 20:06:09 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected software

pydantic

pydantic-ai

Affected versions
>=1.88.0 <1.107.1>=2.0.0b1 <2.5.0

pydantic

pydantic-ai-slim

Affected versions
>=1.88.0 <1.107.1>=2.0.0b1 <2.5.0
pydantic-ai
pkg:pypi/pydantic-ai
Affected versions
=1.88.0=1.107.1=2.0.0=2.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 17:58:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses