VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection (pydantic pydantic-ai)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.32 % · percentile 24 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
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.
Weaknesses (CWE)
- CWE-918 — Server-Side Request Forgery
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-h7p7-w5gc-xj3w — Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials
- PYSEC-2026-3692 — Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials
- PYSEC-2026-3693 — Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials
European references
- ENISA EUVD · EUVD-2026-50562
- GCVE · GCVE-0-2026-54249
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*≥ 1.65.0 < 1.105.0cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta1:*:*:*:python:*:*cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta2:*:*:*:python:*:*cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta3:*:*:*:python:*:*cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta4:*:*:*:python:*:*cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta5:*:*:*:python:*:*
Affected products
| Product | Versions |
|---|---|
| pydantic · pydantic-ai | affected >= 1.65.0, < 1.106.0 ; affected >= 2.0.0b1, < 2.0.0b6 |
| pydantic · pydantic-ai-slim | affected >= 2.0.0b1, < 2.0.0b6 ; affected >= 1.65.0, < 1.106.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |