CVE-2026-133505Tool result data shaped like a file is rebuilt as a file download or provider file…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by Pydantic, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pydantic-ai: affected: 1.50.0 to 1.107.9
- pydantic-ai: affected: 2.0.0b1 to 2.65.0
- pydantic-ai-slim: affected: 1.50.0 to 1.107.9
- pydantic-ai-slim: affected: 2.0.0b1 to 2.65.0
Vendor advisories:
References
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4
- https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.