SecurityContext

CVE-2026-54249: Pydantic AI - Information Disclosure

  • Cve: CVE-2026-54249
  • Name: Pydantic AI - Information Disclosure
  • 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.
  • Impact: Attackers can read arbitrary files from the server's storage or other tenants, potentially exposing sensitive data.
  • Remediation: Update to versions 1.106.0 or 2.0.0b6 or later.
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirements: Attacker needs valid file identifiers which may be guessable
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
  • Epss score: 0.00315
  • Epss percentile: 0.24842
  • Assignee: [email protected]
  • Published at: 2026-07-29T21:17:47Z
  • Age in days: 118
  • Modified at: 2026-08-04T13:22:03Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54249
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-918Server-Side Request Forgery

References

UrlSourceTags
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3wnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
pydantic:pydantic_ai= 2.0.0 beta5; = 2.0.0 beta4; = 2.0.0 beta3; = 2.0.0 beta1; = 2.0.0 beta2; >= 1.65.0, < 1.105.0nonvd/v1/products/pydantic/pydantic_ai

Projects

RepositoryLink kindsIndexedUrl
pydantic/pydantic-aipackage, releases, security_advisoryyes/v1/repositories/pydantic/pydantic-ai

Index

  • Repositories: 14
  • Repositories high signal: 8
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts