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

Published Jul 29, 2026
·
Updated

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.

Affected Software

8 affected components
Pydantic AI Pydantic AI>=1.65.0<=1.105.0, >=2.0.0b1<=2.0.0b5, <=1.105.0
Pydantic AI>=1.65.0<=1.105.0, >=2.0.0b1<=2.0.0b5
Pydantic Pydantic Ai Python>=1.65.0<1.105.0
Pydantic Pydantic Ai Python=2.0.0-beta1
Pydantic Pydantic Ai Python=2.0.0-beta2
Pydantic Pydantic Ai Python=2.0.0-beta3
Pydantic Pydantic Ai Python=2.0.0-beta4
Pydantic Pydantic Ai Python=2.0.0-beta5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pydantic AI to a version that resolves this vulnerability.

    Fixed in 1.106.0
  2. Upgrade

    Upgrade Pydantic AI to a version that resolves this vulnerability.

    Fixed in 2.0.0b6

Event History

Jul 29, 2026
CVE Published
via MITRE·08:28 PM
Data Sourced
via MITRE·08:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-54249?

The severity of CVE-2026-54249 is medium with a score of 6.8.

2

How do I fix CVE-2026-54249?

To fix CVE-2026-54249, update the Pydantic AI framework to a version that is not vulnerable.

3

What does CVE-2026-54249 mean?

CVE-2026-54249 refers to a vulnerability in the Pydantic AI framework where client-controlled `providerMetadata` can lead to inappropriate file access.

4

What applications are affected by CVE-2026-54249?

The versions of Pydantic AI from 1.65.0 through 1.105.0 and 2.0.0b1 through 2.0.0b5 are affected by CVE-2026-54249.

5

What type of vulnerability is CVE-2026-54249 classified as?

CVE-2026-54249 is classified as a Server-Side Request Forgery (SSRF) vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203