CVE-2026-133505
published medium CVSS 3.1 · 5.9Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pydantic | — | pydantic-ai1.50.0 through 1.107.9 · Other versions: unaffected | Affected | Not stated | Pydantic |
| pydantic | — | pydantic-ai2.0.0b1 through 2.65.0 · Other versions: unaffected | Affected | Not stated | Pydantic |
| pydantic | — | pydantic-ai-slim1.50.0 through 1.107.9 · Other versions: unaffected | Affected | Not stated | Pydantic |
| pydantic | — | pydantic-ai-slim2.0.0b1 through 2.65.0 · Other versions: unaffected | Affected | Not stated | Pydantic |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- Pydantic · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pydantic | pydantic-ai | 1.50.0 through 1.107.9 (affected · python)Default: unaffected | Pydantic · cna |
| pydantic | pydantic-ai | 2.0.0b1 through 2.65.0 (affected · python)Default: unaffected | Pydantic · cna |
| pydantic | pydantic-ai-slim | 1.50.0 through 1.107.9 (affected · python)Default: unaffected | Pydantic · cna |
| pydantic | pydantic-ai-slim | 2.0.0b1 through 2.65.0 (affected · python)Default: unaffected | Pydantic · cna |
Weaknesses
2- CWE-843 CWE-843: Access of Resource Using Incompatible Type
- CWE-918 CWE-918: Server-Side Request Forgery
References
2Provider assertions
2Pydantic · cna
Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4426dee00317abb2d7e466a308624e016c0c883316872fb4555160a2e1203c8
- Ingested
- 20 Nov 2026, 17:21:14 UTC
- Source record
- Official CVE record