CVE-2022-31093Nextauth.js Next-auth
Alta 7.5 Sin autenticación
Seguir: esta CVE · Nextauth.js · Nextauth.js Next-auth Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.9% probabilidad de explotación en 30 días · percentil 80
- Requiere autenticación
- No
- Publicada
- 27 jun 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-754
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the **API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and 4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced Initialization. Please see the documentation for more.
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 |
< 3.29.5 |
3.29.5 |
npm install next-auth@3.29.5 |
| npm | next-auth |
≥ 4.0.0 < 4.5.0 |
4.5.0 |
npm install next-auth@4.5.0 |
Según OSV / GitHub Advisories (GHSA-g5fm-jp9v-2432). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nextauth.js | next-auth | ≥ 3.0.0 < 3.29.5 |
| nextauth.js | next-auth | ≥ 4.0.0 < 4.5.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Mitigation Third Party Advisory
- next-auth.js.org Vendor Advisory