CVE-2022-35948Nodejs Undici
Media 5.3 Sin autenticación
Seguir: esta CVE · Nodejs · Nodejs Undici Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.6% probabilidad de explotación en 30 días · percentil 76
- Requiere autenticación
- No
- Publicada
- 15 ago 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Qué pasa
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Undici.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | undici |
< 5.8.2 |
5.8.2 |
npm install undici@5.8.2 |
Según OSV / GitHub Advisories (GHSA-f772-66g8-q5h3). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nodejs | undici | < 5.8.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Third Party Advisory