llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · hono

GHSA-74FM-FWC7-3FWP

`serveStatic` with `allowPercentInPath` still decodes the path a second time, bypassing middleware on static paths

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición9 dDesde la divulgación, 11 nov 2026, 3:54 a. m.
Detección7 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 4.13.18
Monitoreo
Detectada +1
11 nov 26
18 nov 26
20 nov 26
11 nov 26
13 nov 26
15 nov 26
18 nov 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-74FM-FWC7-3FWP divulgada · CVSS 5.3 (GitHub)
Remediación Parche 4.13.18 hono · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

`serveStatic` has an opt-in option, `allowPercentInPath`, for serving files whose names contain a literal `%`. With it enabled, the check added for GHSA-5r4p-p66f-jhc7 that rejects a path containing `%` is skipped, and the path is decoded a second time. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.

Details

Hono decodes the request path once before routing. With a malformed percent-encoded sequence, that decode leaves part of the path encoded, the router matches the encoded form, and the second decode in `serveStatic` resolves the real directory. The option skipped the check without limiting what the second decode may change.

`serveStatic` now accepts a path that still contains `%` only when the second decode changes nothing except `%25`, the escape for a literal `%`. Anything else is treated as not found. File names such as `100%.txt` keep working. The file is still resolved inside the configured root; this is not a traversal outside it.

Impact

An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that set `allowPercentInPath: true` and mount middleware on part of the directory served by `serveStatic`. The default configuration was fixed in 4.13.11 and is not affected.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
hono≥ 4.13.11 ≤ 4.13.17
4.13.11
4.13.17
4.13.19
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmhono
Corregida 4.13.18 0 d 4.13.19 no afectada
Versiones corregidas4.13.18
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/honojs/hono/security/advisories/GHSA-74fm-fwc7-3fwp

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