CVE-2026-101090nezhahq nezha
Inyección de encabezado Host en redirección OAuth2 en Nezha
Crítica 9.3 Sin autenticación
Seguir: esta CVE · nezhahq · nezhahq nezha Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 27 sep 2026
- Actualizada
- 28 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-601
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Qué pasa
Nezha 2.2.3 contiene una regresión de inyección de encabezado Host en el endpoint de redirección OAuth2. Cuando la configuración dashboard_host está vacía, el endpoint /api/v1/oauth2/{provider} refleja el encabezado Host proporcionado por el atacante en el redirect_uri enviado al proveedor de identidad. Un atacante puede inducir a una víctima a iniciar sesión OAuth2 con un encabezado Host falsificado para redirigir el código de autorización a un origen controlado por el atacante, permitiendo la toma de control de cuenta.
Ver el texto original de NVD (en inglés)
Nezha 2.2.3 contains a Host header injection regression in the OAuth2 redirect endpoint. When the new optional dashboard_host setting is empty, /api/v1/oauth2/{provider} (cmd/dashboard/controller/oauth2.go) reflects the attacker-supplied HTTP Host header into the redirect_uri sent to the identity provider instead of falling back to the configured install_host. An attacker who induces a victim to begin OAuth2 login via a request that reaches Nezha with a forged Host header can cause an attacker-controlled callback URL to be used as the redirect_uri; if the OAuth2 provider accepts it, the victim's authorization code is delivered to the attacker origin, allowing the attacker to complete the OAuth2 login/binding flow and take over the account. This regresses the fix for GHSA-9rc6-8cjv-rcvx and is configuration-dependent (dashboard_host empty). At the time of the advisory no patched version was available.
Qué hacer
Sin datos de parche
Configura el parámetro dashboard_host con un valor explícito en lugar de dejarlo vacío para evitar la reflexión del encabezado Host.
- Aplica la actualización de seguridad del fabricante para nezha.
- 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 |
|---|---|---|---|---|
| Go | github.com/nezhahq/nezha |
2.2.3 |
sin versión corregida | — |
| Go | github.com/nezhahq/nezha |
todas |
sin versión corregida | — |
Según OSV / GitHub Advisories (GHSA-rf68-8gjr-36q7, GO-2026-6486). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- nezhahq · nezha
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.