{"id":"CVE-2026-133505","sourceIdentifier":"7cec5f2f-3032-4006-8740-31f605ffab5f","published":"2026-11-20T08:18:33.637","lastModified":"2026-11-23T15:41:46.570","vulnStatus":"Awaiting Analysis","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","affectedData":[{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":"unaffected","collectionURL":"https://pypi.org","packageName":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","versions":[{"version":"1.50.0","lessThanOrEqual":"1.107.9","versionType":"python","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":"unaffected","collectionURL":"https://pypi.org","packageName":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","versions":[{"version":"2.0.0b1","lessThanOrEqual":"2.65.0","versionType":"python","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":"unaffected","collectionURL":"https://pypi.org","packageName":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","versions":[{"version":"1.50.0","lessThanOrEqual":"1.107.9","versionType":"python","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":"unaffected","collectionURL":"https://pypi.org","packageName":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","versions":[{"version":"2.0.0b1","lessThanOrEqual":"2.65.0","versionType":"python","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":5.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-20T17:18:02.957236Z","id":"CVE-2026-133505","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","description":[{"lang":"en","value":"CWE-843"},{"lang":"en","value":"CWE-918"}]}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4","source":"7cec5f2f-3032-4006-8740-31f605ffab5f"},{"url":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages","source":"7cec5f2f-3032-4006-8740-31f605ffab5f"}]}