# CVE-2026-54249: VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-07-29T20:28:07.154Z
- Modified: 2026-08-19T12:55:44.916Z
- Also known as: GHSA-h7p7-w5gc-xj3w, PYSEC-2026-3692, PYSEC-2026-3693
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pydantic pydantic-ai: >= 1.65.0, < 1.106.0; >= 2.0.0b1, < 2.0.0b6
- pydantic pydantic-ai-slim: >= 2.0.0b1, < 2.0.0b6; >= 1.65.0, < 1.106.0
- pydantic-ai-slim (PyPI): from 1.65.0 before 1.106.0; from 2.0.0b1 before 2.0.0b6
- pydantic-ai (PyPI): from 1.65.0 before 1.106.0; from 2.0.0b1 before 2.0.0b6
- pydantic pydantic_ai: from 1.65.0 before 1.105.0; 2.0.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54249> (advisory)
- <https://github.com/pydantic/pydantic-ai> (package)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v1.106.0> (web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v2.0.0b6> (web)
- <https://pypi.org/project/pydantic-ai> (package)
- <https://github.com/advisories/GHSA-h7p7-w5gc-xj3w> (advisory)
- <https://pypi.org/project/pydantic-ai-slim> (package)

## Sources

- CVE List: [CVE-2026-54249](https://www.cve.org/CVERecord?id=CVE-2026-54249), CVE Terms of Use, modified 2026-07-30
- GitHub Advisory Database: [GHSA-h7p7-w5gc-xj3w](https://github.com/advisories/GHSA-h7p7-w5gc-xj3w), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-54249](https://nvd.nist.gov/vuln/detail/CVE-2026-54249), Public domain, modified 2026-08-04
- PyPA Advisory Database: [PYSEC-2026-3692](https://osv.dev/vulnerability/PYSEC-2026-3692), CC-BY-4.0, modified 2026-08-19
- PyPA Advisory Database: [PYSEC-2026-3693](https://osv.dev/vulnerability/PYSEC-2026-3693), CC-BY-4.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-54249 · Whole record: https://cve.day/CVE-2026-54249.json · Rebuilt by cve.day 2026-11-25T22:59:30.487Z
