Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pydantic-ai
  4. ›
  5. CVE-2026-54249

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

August 13, 2026

A client that can submit message history to a Pydantic AI UI adapter can reference arbitrary files in the application’s model-provider or cloud-storage account. The server forwards the reference to the model provider, which fetches it using the server’s own credentials, allowing the client to read files it should not have access to.

References

  • github.com/advisories/GHSA-h7p7-w5gc-xj3w
  • github.com/pydantic/pydantic-ai/releases/tag/v1.106.0
  • github.com/pydantic/pydantic-ai/releases/tag/v2.0.0b6
  • github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w
  • nvd.nist.gov/vuln/detail/CVE-2026-54249

Code Behaviors & Features

Detect and mitigate CVE-2026-54249 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.65.0 before 1.106.0, all versions starting from 2.0.0-b.1 before 2.0.0-b.6

Fixed versions

  • 1.106.0
  • 2.0.0-b.6

Solution

Upgrade to versions 1.106.0, 2.0.0-b.6 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/pydantic-ai/CVE-2026-54249.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 14 Aug 2026 12:18:55 +0000.