llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @nestjs/platform-fastify

GHSA-C987-FV5X-HMPG

Path-scoped middleware bypass on Fastify via an empty route parameter

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

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -31 d de la divulgación
Exposición9 dDesde la divulgación, 12 nov 2026, 8:53 a. m.
Detección6 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (alta) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Puede que hoy no pase nada. Puede.Tu yo del futuro te agradecerá revisarla hoy.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 12.1.3
Parche 11.2.8
Monitoreo
Detectada +1
12 oct 26
23 oct 26
12 nov 26
19 nov 26
21 nov 26
12 oct 26
22 oct 26
1 nov 26
11 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 12.1.3 @nestjs/platform-fastify · -31 d desde divulgación
Remediación Parche 11.2.8 @nestjs/platform-fastify · -20 d desde divulgación
Divulgación Publicada GHSA-C987-FV5X-HMPG divulgada
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

| Field | Value |
| --- | --- |
| Ecosystem | npm |
| Package | `@nestjs/platform-fastify` |
| Affected versions | `< 11.2.8` and `>= 12.0.0, < 12.1.3` |
| Patched versions | `11.2.8` and `12.1.3` |
| Severity | High |
| CVSS v3.1 | `AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N` (8.1) |
| CWE | CWE-436 (Interpretation Conflict), CWE-288 (Authentication Bypass Using an Alternate Path or Channel) |

Summary

On the Fastify adapter, a request that left a route parameter empty could reach the route handler, with an empty
parameter value, without running the Nest middleware bound to that route through `MiddlewareConsumer.forRoutes(...)`.
Applications that enforce authentication or authorization in middleware could run the protected handler with those
checks skipped.

Impact

An application is affected if it uses `@nestjs/platform-fastify` and binds middleware to routes that have path
parameters, for example `forRoutes(UsersController)`. No special router options are needed. Routes declared with
`@All()` were affected as well.

Details

Fastify's router accepts an empty value for a path parameter, while Nest matched middleware paths with a pattern that
requires at least one character per parameter. For such a request the route matched but the middleware did not.

Patches

Fixed in 11.2.8 and 12.1.3. A request that leaves a route parameter empty is now treated as a route miss and
answered with 404, as on the Express adapter. `@All()` routes are covered too.

Workarounds

Enforce authentication and authorization in guards, which run for the matched route, rather than in middleware.

Credit

Found by the NestJS maintainers.

Versiones

Rangos afectados

Afectada Corregida Última
@nestjs/platform-fastify< 11.2.8
@nestjs/platform-fastify≥ 12.0.0 < 12.1.3
11.2.8
12.0.0
12.1.3
12.5.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@nestjs/platform-fastify
Corregida 11.2.8, 12.1.3 -20 d · -31 d 12.5.0 no afectada
Versiones corregidas11.2.812.1.3
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/nestjs/nest/security/advisories/GHSA-c987-fv5x-hmpg

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