CVE-2023-48309Nextauth.js Next-auth
Media 5.3 Sin autenticación
Seguir: esta CVE · Nextauth.js · Nextauth.js Next-auth Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.8% probabilidad de explotación en 30 días · percentil 54
- Requiere autenticación
- No
- Publicada
- 20 nov 2023
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- 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:L/I:N/A:N
Qué pasa
NextAuth.js provides authentication for Next.js. `next-auth` applications prior to version 4.24.5 that rely on the default Middleware authorization are affected by a vulnerability. A bad actor could create an empty/mock user, by getting hold of a NextAuth.js-issued JWT from an interrupted OAuth sign-in flow (state, PKCE or nonce). Manually overriding the `next-auth.session-token` cookie value with this non-related JWT would let the user simulate a logged in user, albeit having no user information associated with it. (The only property on this user is an opaque randomly generated string). This vulnerability does not give access to other users' data, neither to resources that require proper authorization via scopes or other means. The created mock user has no information associated with it (ie. no name, email, access_token, etc.) This vulnerability can be exploited by bad actors to peek at logged in user states (e.g. dashboard layout). `next-auth` `v4.24.5` contains a patch for the vulnerability. As a workaround, using a custom authorization callback for Middleware, developers can manually do a basic authentication.
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 |
< 4.24.5 |
4.24.5 |
npm install next-auth@4.24.5 |
Según OSV / GitHub Advisories (GHSA-v64w-49xw-qq89). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| nextauth.js | next-auth | < 4.24.5 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- authjs.dev Technical Description
- github.com Patch
- github.com Vendor Advisory
- next-auth.js.org Technical Description
- next-auth.js.org Technical Description