Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded

Summary

CVECVE-2026-133505
StatePUBLISHED
AssignerPydantic
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-20 08:18:33 UTC
Updated2026-11-20 18:18:50 UTC
DescriptionWhen 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from 7cec5f2f-3032-4006-8740-31f605ffab5f

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Problem Types: CWE-843 | CWE-918 | CWE-843 CWE-843: Access of Resource Using Incompatible Type | CWE-918 CWE-918: Server-Side Request Forgery


VersionSourceTypeScoreSeverityVector
3.17cec5f2f-3032-4006-8740-31f605ffab5fSecondary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
3.1CNADECLARED5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Pydantic Pydantic-ai affected 1.50.0 1.107.9 python Not specified
CNA Pydantic Pydantic-ai affected 2.0.0b1 2.65.0 python Not specified
CNA Pydantic Pydantic-ai-slim affected 1.50.0 1.107.9 python Not specified
CNA Pydantic Pydantic-ai-slim affected 2.0.0b1 2.65.0 python Not specified

References

ReferenceSourceLinkTags
pydantic.dev/docs/ai/ui/overview 7cec5f2f-3032-4006-8740-31f605ffab5f pydantic.dev
github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4 7cec5f2f-3032-4006-8740-31f605ffab5f github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report