Amenazas en vivo

Todas las CVE / Pydantic

CVE-2026-25640Pydantic Ai

Media 5.4 Sin autenticación

Prioridad
47
CVSS 3.1
5.4
EPSS
—
Requiere autenticación
No
Publicada
6 feb 2026
Actualizada
15 jul 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-22, CWE-79
SSVC (CISA)
Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Qué pasa

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 to before 1.51.0, a path traversal vulnerability in the Pydantic AI web UI allows an attacker to serve arbitrary JavaScript in the context of the application by crafting a malicious URL. In affected versions, the CDN URL is constructed using a version query parameter from the request URL. This parameter is not validated, allowing path traversal sequences that cause the server to fetch and serve attacker-controlled HTML/JavaScript from an arbitrary source on the same CDN, instead of the legitimate chat UI package. If a victim clicks the link or visits it via an iframe, attacker-controlled code executes in their browser, enabling theft of chat history and other client-side data. This vulnerability only affects applications that use Agent.to_web to serve a chat interface and clai web to serve a chat interface from the CLI. These are typically run locally (on localhost), but may also be deployed on a remote server. This vulnerability is fixed in 1.51.0.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Pydantic Ai.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
PyPI pydantic-ai ≥ 1.34.0 < 1.51.0 1.51.0 pip install "pydantic-ai>=1.51.0"
PyPI pydantic-ai ≥ 1.34.0 < 1.51.0 1.51.0 pip install "pydantic-ai>=1.51.0"
PyPI pydantic-ai-slim ≥ 1.34.0 < 1.51.0 1.51.0 pip install "pydantic-ai-slim>=1.51.0"
PyPI pydantic-ai-slim ≥ 1.34.0 < 1.51.0 1.51.0 pip install "pydantic-ai-slim>=1.51.0"

Según OSV / GitHub Advisories (GHSA-wjp5-868j-wqv7, PYSEC-2026-2979, PYSEC-2026-2983). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
pydanticpydantic_ai≥ 1.34.0 < 1.51.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.