llamaCVEVulnerability Intelligence
/
Fastify Middie

CVE-2026-132131

Fastify Middie auth bypass in path-scoped middleware

Remote, unauthenticated attackers can reach protected routes by skipping path-scoped middleware such as auth checks.

Texto original en inglés · Ver en español

UnclearSin parche publicadoimproper input validation
Descargar PNG JSON
CVSS 3.1
7.4
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición2 dDesde la divulgación, 19 nov 2026, 6:33 a. m.
Detección5 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. No hay versión corregida: aplique mitigaciones.
Seguimiento de cerca: yo sé de mirar de cerca.No corre prisa, pero no la pierdas de vista.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada
Fuente: NIST NVD
Verificada
06:33 a. m.
07:22 a. m.
12:19 p. m.
04:16 p. m.
06:33 a. m.
08:59 p. m.
11:25 a. m.
01:50 a. m.
04:16 p. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-132131 divulgada · CVSS 7.4 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

@fastify/middie, the middleware engine for Fastify, can let a remote, unauthenticated attacker reach protected routes. Path-scoped middleware such as authentication, authorization, or rate limiting is skipped for some subroutes when it is mounted on an array of paths that includes a path ending in a slash or the root path.

Affects @fastify/middie 8.3.0 through 9.3.6 when middleware is mounted on an array of paths where an element ends with a slash. Fixed in 9.3.7.

¿Qué significa?Path-scoped middleware such as authentication, authorization, or rate limiting is skipped, while the request still reaches the handler. This means unauthenticated clients can reach protected routes.
¿Quién está afectado?The issue is in @fastify/middie versions 8.3.0 through 9.3.6, and only when middleware is mounted on an array of paths where an element ends with a slash, including a plugin prefix ending in /, or an element that is exactly /. To check a installed version, run npm ls @fastify/middie, and review the mount paths passed to middleware in your code.
¿Qué hacer?Upgrade @fastify/middie to 9.3.7, which is the fixed version.
Descripción original del registro (openjs)

@fastify/middie is the middleware engine that adds Express and Connect style middleware support to Fastify. In versions 8.3.0 through 9.3.6, the internal helper that normalizes a path-scoped middleware's mount path only handles string inputs, but the use method also accepts an array of mount paths and passes it through unchanged, so the normalization silently does nothing. As a result, a trailing slash on an array element survives into the generated route-matching regular expression, and an element that is exactly the root path, meaning a catch-all mount, is dropped entirely. Requests to subroutes of the affected mount paths then skip the path-scoped middleware, such as authentication, authorization, or rate limiting, while Fastify's router still dispatches them to the handler, allowing an unauthenticated client to reach protected routes. Applications are affected when they mount middleware on an array of paths in which an element ends with a slash, including one introduced by a plugin prefix that ends with a slash, or is exactly the root path. The issue is fixed in @fastify/middie 9.3.7, and users should upgrade to 9.3.7 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after routing, and avoid array mount paths with a trailing slash element for security relevant middleware.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Middleware is mounted on an array of paths in which an element ends with a slash, including one created by a plugin prefix ending in /, or an element that is exactly /“An application is affected when it mounts middleware on an array of paths where an element carries a trailing slash”
02
Affected @fastify/middie versions are 8.3.0 through 9.3.6“@fastify/middie versions >= 8.3.0, <= 9.3.6 normalize a path-scoped middleware's mount path”
¿Quién debe revisar?Teams running @fastify/middie 8.3.0 through 9.3.6 that mount authentication, authorization or rate-limit middleware on an array of paths with a trailing-slash element or the root path /.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.1/ 10Alto
Vector 7.1 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
@fastify/middie< 9.3.7
@fastify/middie≥ 8.3.0 < 9.3.7
8.3.0
9.3.6
9.3.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@fastify/middie
Sin parche — — 9.3.6 afectada
Versiones corregidas9.3.7
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALopenjs
Referencias
Fabricantehttps://github.com/fastify/middie/security/advisories/GHSA-hfwp-44m5-9364
Otrahttps://cna.openjsf.org/security-advisories.html

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.