CVE-2026-114607better-auth
Autenticación insegura en Magic Link y OAuth en Better Auth
Crítica 9.1 Sin autenticación
- Prioridad
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 22 oct 2026
- Actualizada
- 23 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-287
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Qué pasa
Better Auth versiones 1.4.0-beta.18 a 1.7.6 permite que un atacante no autenticado obtenga sesiones de usuarios existentes o cree cuentas falsamente verificadas. La vulnerabilidad ocurre cuando Magic Link y OAuth están habilitados con configuraciones específicas, permitiendo reutilizar el estado de OAuth como token de Magic Link sin validación adecuada.
Resumen generado con IA (Claude) a partir de los datos de NVD y CISA. Nadie lo revisó todavía: verifica los detalles en el aviso del fabricante.
Ver el texto original de NVD (en inglés)
Better Auth is an authentication and authorization library for TypeScript. From 1.4.0-beta.18 until 1.7.7, deployments that enable Magic Link with storeToken set to plain, or with storeToken set to hashed and the global verification.storeIdentifier setting also set to hashed, enable a built-in social or Generic OAuth provider, and use account.storeStateStrategy set to database can accept an OAuth sign-in state value as a Magic Link token. These settings can cause Magic Link verification records and OAuth state to resolve to the same stored identifier, allowing an unauthenticated attacker to start OAuth sign-in for a known email address and redeem the returned state through Magic Link without controlling the mailbox or completing the provider callback. The attacker can obtain a normal session for an existing user, or create an account incorrectly marked as email verified when sign-up is enabled. This issue is fixed in version 1.7.7.
Qué hacer
Hay parche · versiones corregidas: 1.7.7
Actualiza Better Auth a la versión 1.7.7 o superior para corregir la vulnerabilidad de autenticación.
Aviso del fabricante · github.com ↗
Generado con IA a partir de los datos públicos; sin revisar.
- Aplica la actualización de seguridad del fabricante para better-auth.
- 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 | better-auth |
≥ 1.4.0-beta.18 < 1.7.7 |
1.7.7 |
npm install better-auth@1.7.7 |
Según OSV / GitHub Advisories (GHSA-965c-763c-88jm). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- better-auth · better-auth
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.