CVE-2022-39263Nextauth.js Next-auth
Alta 8.1 Sin autenticación
Seguir: esta CVE · Nextauth.js · Nextauth.js Next-auth Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 64
- CVSS 3.1
- 8.1
- EPSS
- 0.8% probabilidad de explotación en 30 días · percentil 53
- Requiere autenticación
- No
- Publicada
- 28 sep 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-287
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications that use `next-auth` Email Provider and `@next-auth/upstash-redis-adapter` before v3.0.2 are affected by this vulnerability. The Upstash Redis adapter implementation did not check for both the identifier (email) and the token, but only checking for the identifier when verifying the token in the email callback flow. An attacker who knows about the victim's email could easily sign in as the victim, given the attacker also knows about the verification token's expired duration. The vulnerability is patched in v3.0.2. A workaround is available. Using Advanced Initialization, developers can check the requests and compare the query's token and identifier before proceeding.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Next-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 | @next-auth/upstash-redis-adapter |
< 3.0.2 |
3.0.2 |
npm install @next-auth/upstash-redis-adapter@3.0.2 |
Según OSV / GitHub Advisories (GHSA-4rxr-27mm-mxq9). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nextauth.js | next-auth | < 3.0.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Mitigation Patch Third Party Advisory