VYPR
Medium severity6.8OSV Advisory· Published Jul 29, 2026· Updated Aug 4, 2026

CVE-2026-54249

CVE-2026-54249

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
pydantic-ai-slimPyPI
>= 1.65.0, < 1.106.01.106.0
pydantic-ai-slimPyPI
>= 2.0.0b1, < 2.0.0b62.0.0b6
pydantic-aiPyPI
>= 1.65.0, < 1.106.01.106.0
pydantic-aiPyPI
>= 2.0.0b1, < 2.0.0b62.0.0b6

Affected products

8
  • v2.0.0b5, v1.105.0, v2.0.0b4, …+ 7 more
    • (no CPE)range: v2.0.0b5, v1.105.0, v2.0.0b4, …
    • cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*range: >=1.65.0,<1.105.0
    • cpe: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:*:*
    • (no CPE)range: 1.65.0 - 1.105.0, 2.0.0b1 - 2.0.0b5

Patches

Vulnerability mechanics

References

5

News mentions

0

No linked articles in our index yet.