CVE-2022-31151Nodejs Undici
Media 6.5 Sin autenticación
Seguir: esta CVE · Nodejs · Nodejs Undici Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 54
- CVSS 3.1
- 6.5
- EPSS
- 0.8% probabilidad de explotación en 30 días · percentil 51
- Requiere autenticación
- No
- Publicada
- 21 jul 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Qué pasa
Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).
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.0 |
5.8.0 |
npm install undici@5.8.0 |
Según OSV / GitHub Advisories (GHSA-q768-x9m6-m9qp). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nodejs | undici | < 5.7.1 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Third Party Advisory
- hackerone.com Permissions Required Third Party Advisory
- security.netapp.com Third Party Advisory