All vulnerabilities

PyPI

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

Severity
Medium 5.9
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Exploit chance
0.7% in the next 30 daysHigher than 53% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-843Server-side request forgery (CWE-918)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Sources
CVE Program

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.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
pydantic-aiPyPI · osv:PyPI:pydantic-ai
  • From 1.50.0 up to 1.107.9
  • From 2.0.0b1 up to 2.65.0
pydantic-ai-slimPyPI · osv:PyPI:pydantic-ai-slim
  • From 1.50.0 up to 1.107.9
  • From 2.0.0b1 up to 2.65.0

About pydantic-ai

Weekly downloads (PyPI)
1,780,196PyPI Stats, 24 Nov 2026

This is the only vulnerability in pydantic-ai in our list.

About pydantic-ai-slim

Weekly downloads (PyPI)
9,217,900PyPI Stats, 24 Nov 2026

This is the only vulnerability in pydantic-ai-slim in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-133505