Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-132131: vulnerabilidad de severidad alta (CVSS 7.4) en @fastify/middie @fastify/middie.
Qué ocurre
Descripción original de la fuente (en inglés): @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.
Por qué importa
Severidad alta, CVSS 7.4.
Productos y versiones afectados
@fastify/middie @fastify/middie >= 8.3.0, < 9.3.7; @fastify/middie @fastify/middie 9.3.7 (corregido en 9.3.7)
| Producto | Versiones | Corregido en |
|---|---|---|
| @fastify/middie @fastify/middie | >= 8.3.0, < 9.3.7 | — |
| @fastify/middie @fastify/middie | 9.3.7 | 9.3.7 |
Acción recomendada por la fuente
Actualizar a una versión corregida: 9.3.7.
Corregido en: 9.3.7
Fuentes y referencias
- https://github.com/fastify/middie/security/advisories/GHSA-hfwp-44m5-9364 — CVE Program
- https://cna.openjsf.org/security-advisories.html — CVE Program
Debilidades (CWE): CWE-1287
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.