{"id":"CVE-2026-133505","aliases":["CVE-2026-133505"],"related":[],"kind":"vulnerability","state":"published","title":"Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-20T07:34:58.052Z","modified":"2026-11-23T15:41:46.570Z","severity":{"scorer":"Pydantic","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"Pydantic","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-843","CWE-918"],"affected":[{"ranges":[{"type":"python","introduced":"1.50.0","lastAffected":"1.107.9","status":"affected"}],"vendor":"pydantic","product":"pydantic-ai","package":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","source":"cvelist"},{"ranges":[{"type":"python","introduced":"2.0.0b1","lastAffected":"2.65.0","status":"affected"}],"vendor":"pydantic","product":"pydantic-ai","package":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","source":"cvelist"},{"ranges":[{"type":"python","introduced":"1.50.0","lastAffected":"1.107.9","status":"affected"}],"vendor":"pydantic","product":"pydantic-ai-slim","package":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","source":"cvelist"},{"ranges":[{"type":"python","introduced":"2.0.0b1","lastAffected":"2.65.0","status":"affected"}],"vendor":"pydantic","product":"pydantic-ai-slim","package":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","source":"cvelist"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Pydantic","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-20T17:18:02.957Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133505","url":"https://www.cve.org/CVERecord?id=CVE-2026-133505","licence":"CVE Terms of Use","modified":"2026-11-20T17:18:12.084Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133505","licence":"Public domain","modified":"2026-11-23T15:41:46.570Z"}],"updatedAt":"2026-11-25T22:59:52.365Z","epss":{"score":0.00702,"percentile":0.54487,"date":"2026-12-01T12:00:22.000Z"}}