Amenazas en vivo

Todas las CVE / Fastify

CVE-2023-31999Fastify Oauth2

Alta 8.8 Sin autenticación

Prioridad
68
CVSS 3.1
8.8
EPSS
0.7%
probabilidad de explotación en 30 días · percentil 51
Requiere autenticación
No
Publicada
4 jul 2023
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-352
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Qué pasa

All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all requests for all users. The purpose of the Oauth2 state parameter is to prevent Cross-Site-Request-Forgery attacks. As such, it should be unique per user and should be connected to the user's session in some way that will allow the server to validate it. v7.2.0 changes the default behavior to store the state in a cookie with the http-only and same-site=lax attributes set. The state is now by default generated for every user. Note that this contains a breaking change in the checkStateFunction function, which now accepts the full Request object.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Oauth2.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
npm @fastify/oauth2 < 7.2.0 7.2.0 npm install @fastify/oauth2@7.2.0

Según OSV / GitHub Advisories (GHSA-g8x5-p9qc-cf95). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
fastifyoauth2< 7.2.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.