llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @fastify/swagger-ui

GHSA-J7QM-JHPC-MJ26

@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
3.7
Baja
CVSS:3.1/AV:N/AC:H/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
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición20 hDesde la divulgación, 20 nov 2026, 1:17 p. m.
Detección11 minDesde 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 vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Nivel de alerta: llama en hamaca.Tranquilidad nivel Chimborazo nevado.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
01:17 p. m.
08:49 a. m.
01:17 p. m.
06:10 p. m.
11:03 p. m.
03:56 a. m.
08:49 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-J7QM-JHPC-MJ26 divulgada · CVSS 3.7 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

`@fastify/swagger-ui` lets applications protect the documentation with `uiHooks` (the `onRequest` and `preHandler` authentication hooks described in the README). Those hooks are applied to every route the plugin adds except the `@fastify/static` instance mounted at `<routePrefix>/static/`. When `baseDir` is set, which the README recommends for bundling the UI, that instance serves every file in `baseDir`, so a file the operator protected at `<routePrefix>/<file>` is also reachable without credentials at `<routePrefix>/static/<file>`. An unauthenticated client who knows or guesses a file name can read specification files that were meant to stay behind the documentation login. Access is read-only, and the `/json`, `/yaml` and UI page routes stay protected. Versions 2.1.0 through 6.1.4 are affected.

Patches

Upgrade to `@fastify/swagger-ui` 6.1.5 or later, which applies the `uiHooks` to the `/static` route as well. The bundled Swagger UI assets are now served behind the same hooks. Basic and cookie or session authentication keep working because the browser sends same-origin credentials for those requests; a header-only bearer scheme or a proxy that injects authentication may need the assets on a separate public path or an authentication-aware same-origin proxy.

Workarounds

Enforce authentication in a Fastify hook registered before `@fastify/swagger-ui` so it also runs for the `/static` route, or do not set `baseDir` (without it, only the public bundled assets are served under `/static/`).

References
  • GHSA-62jr-84gf-wmg4 https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4 (CVE-2024-22207), an earlier file exposure in `@fastify/swagger-ui`'s static serving.
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:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
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/swagger-ui≥ 2.1.0 < 6.1.5
2.1.0
6.1.3
6.1.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@fastify/swagger-ui
Sin parche — — 6.1.3 afectada
Versiones corregidas6.1.5
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-j7qm-jhpc-mj26

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