GHSA-R879-RXGJ-3G75
UI adapters take quadratic time to load a submitted message with many parts
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-R879-RXGJ-3G75 divulgada · CVSS 4.3 (GitHub) | |
| Remediación | Parche 2.66.0 | pydantic-ai · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The Vercel AI and AG-UI adapters convert a submitted conversation into Pydantic AI messages by copying a message's list of parts each time they add a part to it, so loading one message with many parts takes time that grows with the square of the number of parts. This runs on the event loop, so a single request can delay other work in the same process.
Details
This affects applications that pass client-submitted conversations to `VercelAIAdapter` or `AGUIAdapter`, including the request-handling helpers built on them. How long one request can block depends on the request size the application accepts: a request of a few megabytes can block the event loop for tens of seconds or more.
The assumed attacker is an authenticated client of the adapter endpoint; the UI documentation requires running the adapters behind application authentication.
Mitigation
Upgrade to a patched version. Until then, limit the request body size and the number of parts per message that your endpoint accepts before passing the request to the adapter.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic-ai |
Corregida | 2.66.0 | 0 d | 2.68.0 no afectada |
pypipydantic-ai-slim |
Corregida | 2.66.0 | 0 d | 2.71.0 no afectada |
2.66.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-r879-rxgj-3g75Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
