{"api_version":"1","generated_at":"2026-11-20T19:00:14+00:00","cve":"CVE-2026-133505","urls":{"html":"https://cve.report/CVE-2026-133505","api":"https://cve.report/api/cve/CVE-2026-133505.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-133505","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-133505"},"summary":{"title":"Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded","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. 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.","state":"PUBLISHED","assigner":"Pydantic","published_at":"2026-11-20 08:18:33","updated_at":"2026-11-20 18:18:50"},"problem_types":["CWE-843","CWE-918","CWE-843 CWE-843: Access of Resource Using Incompatible Type","CWE-918 CWE-918: Server-Side Request Forgery"],"metrics":[{"version":"3.1","source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","score":"5.9","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","data":{"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"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"5.9","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","data":{"baseScore":5.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"references":[{"url":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages","name":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4","name":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-133505","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133505","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"pydantic","product":"pydantic-ai","version":"affected 1.50.0 1.107.9 python","platforms":[]},{"source":"CNA","vendor":"pydantic","product":"pydantic-ai","version":"affected 2.0.0b1 2.65.0 python","platforms":[]},{"source":"CNA","vendor":"pydantic","product":"pydantic-ai-slim","version":"affected 1.50.0 1.107.9 python","platforms":[]},{"source":"CNA","vendor":"pydantic","product":"pydantic-ai-slim","version":"affected 2.0.0b1 2.65.0 python","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-133505","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-11-20T17:18:02.957236Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-20T17:18:12.084Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"collectionURL":"https://pypi.org","defaultStatus":"unaffected","packageName":"pydantic-ai","product":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","vendor":"pydantic","versions":[{"lessThanOrEqual":"1.107.9","status":"affected","version":"1.50.0","versionType":"python"}]},{"collectionURL":"https://pypi.org","defaultStatus":"unaffected","packageName":"pydantic-ai","product":"pydantic-ai","repo":"https://github.com/pydantic/pydantic-ai","vendor":"pydantic","versions":[{"lessThanOrEqual":"2.65.0","status":"affected","version":"2.0.0b1","versionType":"python"}]},{"collectionURL":"https://pypi.org","defaultStatus":"unaffected","packageName":"pydantic-ai-slim","product":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","vendor":"pydantic","versions":[{"lessThanOrEqual":"1.107.9","status":"affected","version":"1.50.0","versionType":"python"}]},{"collectionURL":"https://pypi.org","defaultStatus":"unaffected","packageName":"pydantic-ai-slim","product":"pydantic-ai-slim","repo":"https://github.com/pydantic/pydantic-ai","vendor":"pydantic","versions":[{"lessThanOrEqual":"2.65.0","status":"affected","version":"2.0.0b1","versionType":"python"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":5.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","description":"CWE-843: Access of Resource Using Incompatible Type","lang":"en","type":"CWE"},{"cweId":"CWE-918","description":"CWE-918: Server-Side Request Forgery","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-20T07:34:58.052Z","orgId":"7cec5f2f-3032-4006-8740-31f605ffab5f","shortName":"Pydantic"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4"},{"url":"https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages"}],"source":{"advisory":"GHSA-4cj4-hgwf-4hc4","discovery":"UNKNOWN"},"title":"Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded"}},"cveMetadata":{"assignerOrgId":"7cec5f2f-3032-4006-8740-31f605ffab5f","assignerShortName":"Pydantic","cveId":"CVE-2026-133505","datePublished":"2026-11-20T07:34:58.052Z","dateReserved":"2026-11-19T23:17:25.405Z","dateUpdated":"2026-11-20T17:18:12.084Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 08:18:33","lastModifiedDate":"2026-11-20 18:18:50","problem_types":["CWE-843","CWE-918","CWE-843 CWE-843: Access of Resource Using Incompatible Type","CWE-918 CWE-918: Server-Side Request Forgery"],"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"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"133505","Ordinal":"1","Title":"Tool result data shaped like a file is rebuilt as a file downloa","CVE":"CVE-2026-133505","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"133505","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Tool result data shaped like a file is rebuilt as a file downloa"}]}}}