CVE-2026-22031Fastify/middie
Alta 8.8
Seguir: esta CVE · Fastify · Fastify/middie Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 53
- CVSS 3.1
- 8.8
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 19 ene 2026
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-177
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Qué pasa
@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in @fastify/middie prior to version 9.1.0 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., `/%61dmin` instead of `/admin`). While the middleware engine fails to match the encoded path and skips execution, the underlying Fastify router correctly decodes the path and matches the route handler, allowing attackers to access protected endpoints without the middleware constraints. Version 9.1.0 fixes the issue.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Fastify/middie.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | @fastify/middie |
< 9.1.0 |
9.1.0 |
npm install @fastify/middie@9.1.0 |
Según OSV / GitHub Advisories (GHSA-cxrg-g7r8-w69p). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| fastify | fastify/middie | < 9.1.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Product Release Notes
- github.com Exploit Vendor Advisory