CVE-2026-133505Pydantic-ai type confusion
CVSS score
5.9
Medium
CVSS 3.1 from 7cec5f2f-3032-4006-8740-31f605ffab5f
Exploit probability (EPSS)
0.70%
0.70% chance of exploitation in the next 30 days, higher than 54.2% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
When message history is serialized and loaded again, a tool result that contains a JSON object in the serialized shape of one of Pydantic AI's file types is rebuilt as that file. A third party who controls data a tool returns, such as a record that an MCP server or a function tool returns from an external system, can use this to make the application download a URL on its local network, or make the model provider read an s3:// object or uploaded file with the application's credentials. Applications are affected when tool results can contain third-party data, message history containing those results is serialized and loaded again (stored history, history a UI adapter holds on the server, or Temporal, DBOS or Prefect durable execution), and the model is one Pydantic AI downloads files for, one that honors force_download, or one whose provider resolves non-HTTP file URLs or uploaded files. History that a client submits through the Vercel AI or AG-UI adapter in the default mode is not affected. The issue is fixed in pydantic-ai and pydantic-ai-slim 1.107.10 and 2.66.0.
Source: NVD · CNA: 7cec5f2f-3032-4006-8740-31f605ffab5f
How to fix it, step by step
Check whether you're affected
Find every system running Pydantic-ai, Pydantic-ai-slim and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Affected products | Versions |
|---|---|
| pydantic Pydantic-ai | ≥ 1.50.0, ≤ 1.107.9 · ≥ 2.0.0b1, ≤ 2.65.0 |
| pydantic Pydantic-ai-slim | ≥ 1.50.0, ≤ 1.107.9 · ≥ 2.0.0b1, ≤ 2.65.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-133505 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.7% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-133505?
CVE-2026-133505 has a CVSS 3.1 base score of 5.9 (medium).
Which versions are affected?
Pydantic Pydantic-ai (≥ 1.50.0, ≤ 1.107.9; ≥ 2.0.0b1, ≤ 2.65.0), Pydantic Pydantic-ai-slim (≥ 1.50.0, ≤ 1.107.9; ≥ 2.0.0b1, ≤ 2.65.0)
Is there a patch for CVE-2026-133505?
No patch is linked in the official record yet. Watch the vendor's security advisories.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.