Media

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

  • Publicada: 13.08.2026
  • Actualizado: 11.10.2026 14:19

Summary

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.

Details

UI adapters reconstruct file parts from client-submitted message history and forward them to the model provider. File URL parts are validated against a scheme allowlist before being forwarded, but 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, a client that crafts message history containing an attacker-chosen UploadedFile can cause the server to read objects belonging to its own account or to other tenants, given a referenceable identifier.

Impact

Applications that pass untrusted client-submitted message history to an agent through a UI adapter (such as the Vercel AI adapter). Exploitation requires the attacker to reference a valid file identifier; depending on how the application names objects, such identifiers are not always unguessable.

Patches

Upgrade to 1.106.0 (1.x) or 2.0.0b6 (the 2.x beta line), which validate UploadedFile references on client-submitted messages the same way file URLs are validated.

Workarounds

If users cannot upgrade, do not pass untrusted client-submitted message history to the agent, or strip UploadedFile parts from incoming messages before running the agent.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) pydantic-ai >= 1.65.0, < 1.106.0, >= 2.0.0b1, < 2.0.0b6 1.106.0, 2.0.0b6
Python (PyPI) pydantic-ai-slim >= 1.65.0, < 1.106.0, >= 2.0.0b1, < 2.0.0b6 1.106.0, 2.0.0b6

Referencias

Puntuación CVSS 6.8/10
Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Debilidad (CWE)
CWE-918
Plataforma
Python (PyPI)
Paquete
pydantic-ai, pydantic-ai-slim
Publicada
13.08.2026
Actualizado
11.10.2026 14:19

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2026-3692 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-h7p7-w5gc-xj3w - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-3693 - PyPA Advisory Database; CC BY 4.0

Historial de vulnerabilidades: pydantic-ai

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (14) en el archivo
Entradas en total
14
Primera → última
02.2026 10.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 4
  • Media 8
  • Baja 2

Divulgaciones por año

  1. 2026: 14
Gravedad:
  1. Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials esta entrada
    Media · 6.8 CVE-2026-54249 >= 1.65.0, < 1.106.0, >= 2.0.0b1, < 2.0.0b6 1.106.0, 2.0.0b6
  2. Alta · 7.1 CVE-2026-25640 >= 1.34.0, < 1.51.0 1.51.0
  3. Alta · 8.6 CVE-2026-25580 >= 0.0.26, < 1.56.0 1.56.0

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.