Security mailing lists by PureSourceCode

CVE-2026-54249

MEDIUM 6.8CVSS 3.1

Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials

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.

Published
29 Jul 2026
Last modified
19 Aug 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-918
Also known as
GHSA-h7p7-w5gc-xj3wPYSEC-2026-3692PYSEC-2026-3693
Sources
NVDJSONOSV GHSA-h7p7-w5gc-xj3wJSONOSV PYSEC-2026-3692JSONOSV PYSEC-2026-3693JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) 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
OSV GitHub 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
OSV PyPA 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*
>= 1.65.0, < 1.105.0 1.105.0
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta1:*:*:*:python:*:*
= 2.0.0
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta2:*:*:*:python:*:*
= 2.0.0
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta3:*:*:*:python:*:*
= 2.0.0
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta4:*:*:*:python:*:*
= 2.0.0
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta5:*:*:*:python:*:*
= 2.0.0
OSV PyPI pydantic-ai-slim >= 1.65.0, < 1.106.0 1.106.0
OSV PyPI pydantic-ai-slim >= 2.0.0b1, < 2.0.0b6 2.0.0b6
OSV PyPI pydantic-ai >= 1.65.0, < 1.106.0 1.106.0
OSV PyPI pydantic-ai >= 2.0.0b1, < 2.0.0b6 2.0.0b6
OSV PyPI pydantic-ai >= 1.65.0, < 1.106.0; >= 2.0.0b1, < 2.0.0b6 1.106.0, 2.0.0b6
OSV PyPI pydantic-ai-slim >= 1.65.0, < 1.106.0; >= 2.0.0b1, < 2.0.0b6 1.106.0, 2.0.0b6

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 29 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Aug 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.