Home / pydantic / pydantic-ai / CVE-2026-65975
CVE-2026-65975: is it exploited, and which versions of pydantic-ai are affected and fixed?
CVE-2026-65975 is an incorrect authorization vulnerability in pydantic-ai. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: pydantic-ai >= 1.88.0, < 1.107.1, pydantic-ai >= 2.0.0b1, < 2.5.0, pydantic-ai-slim >= 1.88.0, < 1.107.1 and 1 more (CVE record by GitHub_M). Fixed in 1.107.1 and 2.5.0 (NVD). Severity: Medium (6.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-65975?
Pydantic AI AG-UI Adapter: A dangling client-submitted tool call can execute when a trailing message is dropped during `sanitize_messages`
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. This issue has been fixed in versions 1.107.1 and 2.5.0.
From the CVE record by GitHub_M, last updated July 30, 2026, 13:54 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pydantic | pydantic-ai | >= 1.88.0, < 1.107.1 >= 2.0.0b1, < 2.5.0 | |
| pydantic | pydantic-ai-slim | >= 1.88.0, < 1.107.1 >= 2.0.0b1, < 2.5.0 |
As the CVE record by GitHub_M states it, last updated July 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pydantic | pydantic ai | from 1.88.0 before 1.107.1 | application |
| pydantic | pydantic ai | from 2.0.0 before 2.5.0 | application |
NVD analysis (status Analyzed), last modified August 4, 2026, 12:43 UTC.
How severe is CVE-2026-65975?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-65975 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, July 30, 2026)
- EPSS
- 0.20% probability of exploitation activity in the next 30 days, percentile 9.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-863 Incorrect Authorization
Where are the vendor advisories and references?
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-jpr8-2v3g-wgf9 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- July 23, 2026
- Published
- July 29, 2026, 20:06 UTC
- CVE record updated
- July 30, 2026, 13:54 UTC by GitHub_M
- NVD
- Analyzed, last modified August 4, 2026, 12:43 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pydantic-ai?
- Nov 20, 2026CVE-2026-133505 pydantic-ai: type confusion
- Oct 8, 2026CVE-2026-107295 pydantic-ai: cross-site request forgery (CSRF)
- Oct 8, 2026CVE-2026-107294 pydantic-ai: denial of service (uncontrolled resource consumption)
- Oct 8, 2026CVE-2026-107293 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107292 pydantic-ai: origin not validated
- Oct 8, 2026CVE-2026-107291 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107290 pydantic-ai: regular expression denial of service (ReDoS)
- Oct 8, 2026CVE-2026-107289 pydantic-ai: server-side request forgery (SSRF)
Questions about CVE-2026-65975
Is CVE-2026-65975 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pydantic-ai are affected by CVE-2026-65975?
pydantic-ai >= 1.88.0, < 1.107.1, pydantic-ai >= 2.0.0b1, < 2.5.0, pydantic-ai-slim >= 1.88.0, < 1.107.1 and pydantic-ai-slim >= 2.0.0b1, < 2.5.0, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2026-65975?
1.107.1 and 2.5.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-65975?
Medium (6.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-65975?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.