{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-133505","id":"CVE-2026-133505","title":"Pydantic AI SSRF in deserialized tool results","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","descriptionLong":"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.","published":"2026-11-20T07:34:58.052Z","updated":"2026-11-20T09:00:45.090914686Z","reserved":"2026-11-19T23:17:25.405Z","status":"Received","rejected":false,"assigner":"Pydantic","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"Pydantic"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"Pydantic"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"7cec5f2f-3032-4006-8740-31f605ffab5f"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["pydantic-ai","pydantic-ai-slim"],"affectedProducts":[{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":"unaffected","versions":[{"version":"1.50.0","lessThanOrEqual":"1.107.9","status":"affected","versionType":"python"}],"platforms":[]},{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":"unaffected","versions":[{"version":"2.0.0b1","lessThanOrEqual":"2.65.0","status":"affected","versionType":"python"}],"platforms":[]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":"unaffected","versions":[{"version":"1.50.0","lessThanOrEqual":"1.107.9","status":"affected","versionType":"python"}],"platforms":[]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":"unaffected","versions":[{"version":"2.0.0b1","lessThanOrEqual":"2.65.0","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-843","CWE-918"],"aliases":["GHSA-4cj4-hgwf-4hc4"],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4","tags":["vendor-advisory","advisory"]},{"url":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133505.json","tags":["advisory"]},{"url":"https://github.com/pydantic/pydantic-ai","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133505","tags":["advisory"]},{"url":"https://pypi.org","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-133505","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133505","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-133505","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-133505","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}