CVE-2026-133505
Published:November 20, 2026
Updated:November 20, 2026
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.
Affected Packages
pydantic-ai-slim (CONDA):
Affected version(s) >=1.50.0 <1.107.10Fix Suggestion:
Update to version 1.107.10pydantic-ai (CONDA):
Affected version(s) >=1.50.0 <1.107.10Fix Suggestion:
Update to version 1.107.10pydantic-ai (CONDA):
Affected version(s) >=2.0.0 <2.66.0Fix Suggestion:
Update to version 2.66.0pydantic-ai-slim (CONDA):
Affected version(s) >=2.0.0 <2.66.0Fix Suggestion:
Update to version 2.66.0https://github.com/pydantic/pydantic-ai.git (GITHUB):
Affected version(s) >=v1.50.0 <v1.107.10Fix Suggestion:
Update to version v1.107.10https://github.com/pydantic/pydantic-ai.git (GITHUB):
Affected version(s) >=v2.0.0b1 <v2.66.0Fix Suggestion:
Update to version v2.66.0pydantic-ai (PYTHON):
Affected version(s) >=1.50.0 <1.107.10Fix Suggestion:
Update to version 1.107.10pydantic-ai-slim (PYTHON):
Affected version(s) >=2.0.0b1 <2.66.0Fix Suggestion:
Update to version 2.66.0pydantic-ai-slim (PYTHON):
Affected version(s) >=1.50.0 <1.107.10Fix Suggestion:
Update to version 1.107.10pydantic-ai (PYTHON):
Affected version(s) >=2.0.0b1 <2.66.0Fix Suggestion:
Update to version 2.66.0Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE