{"id":"CVE-2026-54249","published":"2026-07-29T20:28:07Z","modified":"2026-07-30T13:08:12Z","title":"VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via…","vendor":"pydantic","product":"pydantic-ai","tier":"tail","description":{"text":"Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.65.0 through 1.105.0, and 2.0.0b1 through 2.0.0b5, a client that submits message history to a Pydantic AI UI adapter (such as the Vercel AI adapter) can reference arbitrary files in the application's model-provider or cloud-storage account. While file URL parts are validated against a scheme allowlist, UploadedFile references — which point to a file by provider file ID or cloud-storage URI (e.g. s3://…, gs://…) — were forwarded without validation. Because the provider resolves an UploadedFile using the server-side identity (IAM role, service account, or provider API key) rather than the client's, an attacker can craft message history to make the server read objects from its own account or other tenants, given a referenceable identifier. Exploitation requires a valid file identifier, which is not always unguessable depending on how the application names objects. This issue has been fixed in versions 1.106.0 and 2.0.0b6.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00315,"percentile":0.25053,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":5.01},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai","versions":[">= 1.65.0, < 1.106.0",">= 2.0.0b1, < 2.0.0b6"]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[">= 2.0.0b1, < 2.0.0b6",">= 1.65.0, < 1.106.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-30T13:08:03.344276Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai-slim","vulnerableRanges":[">=1.65.0, <1.106.0",">=2.0.0b1, <2.0.0b6"],"patched":["1.106.0","2.0.0b6"],"from":["GHSA-h7p7-w5gc-xj3w","PYSEC-2026-3693"],"provenance":"source"},{"ecosystem":"PyPI","package":"pydantic-ai","vulnerableRanges":[">=1.65.0, <1.106.0",">=2.0.0b1, <2.0.0b6"],"patched":["1.106.0","2.0.0b6"],"from":["GHSA-h7p7-w5gc-xj3w","PYSEC-2026-3692"],"provenance":"source"}],"summary":{"text":"Pydantic AI's Vercel AI adapter (and other UI adapters) forwards UploadedFile references in client-submitted message history to the model provider without validation, so the provider resolves them with the server's own credentials. An attacker who can submit message history to such an adapter and knows or can guess a valid file ID or cloud-storage URI (such as an s3:// or gs:// path) can have the server read objects from its own account or other tenants, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:56Z"},"euvd":{"id":"EUVD-2026-50562","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25580","published":"2026-02-06","fixed":"1.56.0","kev":false},{"cve":"CVE-2026-46678","published":"2026-07-29","fixed":"1.99.0","kev":false},{"cve":"CVE-2026-48782","published":"2026-06-16","fixed":"2.0.0b3","kev":false,"link":{"from":"CVE-2026-48782","to":"CVE-2026-54249","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.102.0","toFixed":"1.106.0","daysApart":43},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.0.0b3","toFixed":"2.0.0b6","daysApart":43}]}},{"cve":"CVE-2026-54249","published":"2026-07-29","fixed":"2.0.0b6","kev":false},{"cve":"CVE-2026-107294","published":"2026-10-08","fixed":"2.24.0","kev":false,"link":{"from":"CVE-2026-54249","to":"CVE-2026-107294","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.106.0","toFixed":"1.107.2","daysApart":71},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.0.0b6","toFixed":"2.24.0","daysApart":71}]}},{"cve":"CVE-2026-107293","published":"2026-10-08","fixed":"2.27.1","kev":false},{"cve":"CVE-2026-107295","published":"2026-10-08","fixed":"2.28.0","kev":false}],"package":"PyPI:pydantic-ai"}}