CVE-2026-133505

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

State
Published
Severity
5.9 Medium
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Nov 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NPydantic

Weaknesses

  • CWE-843 Access of Resource Using Incompatible Type
  • CWE-918 Server-Side Request Forgery

Affected Products

ProductVersions
pydantic-aipydantic
  • 1.50.0 through 1.107.9Affected
pydantic-aipydantic
  • 2.0.0b1 through 2.65.0Affected
pydantic-ai-slimpydantic
  • 1.50.0 through 1.107.9Affected
pydantic-ai-slimpydantic
  • 2.0.0b1 through 2.65.0Affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.