Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-133505: vulnerabilidad de severidad media (CVSS 5.9) en pydantic pydantic-ai.
Qué ocurre
Descripción original de la fuente (en inglés): When message history is serialized and loaded again, a tool result that contains a JSON object in the serialized shape of one of Pydantic AI's file types is rebuilt as that file. A third party who controls data a tool returns, such as a record that an MCP server or a function tool returns from an external system, can use this to make the application download a URL on its local network, or make the model provider read an s3:// object or uploaded file with the application's credentials. Applications are affected when tool results can contain third-party data, message history containing those results is serialized and loaded again (stored history, history a UI adapter holds on the server, or Temporal, DBOS or Prefect durable execution), and the model is one Pydantic AI downloads files for, one that honors force_download, or one whose provider resolves non-HTTP file URLs or uploaded files. History that a client submits through the Vercel AI or AG-UI adapter in the default mode is not affected. The issue is fixed in pydantic-ai and pydantic-ai-slim 1.107.10 and 2.66.0.
Por qué importa
Severidad media, CVSS 5.9.
Productos y versiones afectados
pydantic pydantic-ai >= 1.50.0, <= 1.107.9; pydantic pydantic-ai >= 2.0.0b1, <= 2.65.0; pydantic pydantic-ai-slim >= 1.50.0, <= 1.107.9; pydantic pydantic-ai-slim >= 2.0.0b1, <= 2.65.0
| Producto | Versiones | Corregido en |
|---|---|---|
| pydantic pydantic-ai | >= 1.50.0, <= 1.107.9 | — |
| pydantic pydantic-ai | >= 2.0.0b1, <= 2.65.0 | — |
| pydantic pydantic-ai-slim | >= 1.50.0, <= 1.107.9 | — |
| pydantic pydantic-ai-slim | >= 2.0.0b1, <= 2.65.0 | — |
Acción recomendada por la fuente
Consultá las referencias oficiales para conocer la corrección o mitigación.
Fuentes y referencias
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4 — CVE Program
- https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages — CVE Program
Debilidades (CWE): CWE-843, CWE-918
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.