llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @builder.io/qwik-city

GHSA-7G9H-PV6M-P3MW

Path Traversal (Arbitrary File Read) in Qwik City Vite Dev Server Static Middleware

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -10 d de la divulgación
Exposición49 dDesde la divulgación, 3 oct 2026, 5:46 a. m.
Detección46 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.
No es drama, es prevención. Hazme caso.Anótala en tu libreta de pendientes serios.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 1.20.1
Monitoreo
Detectada +1
23 sept 26
3 oct 26
18 nov 26
21 nov 26
23 sept 26
8 oct 26
23 oct 26
6 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.20.1 @builder.io/qwik-city · -10 d desde divulgación
Divulgación Publicada GHSA-7G9H-PV6M-P3MW 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

Description

In `@builder.io/qwik-city` 1.20.0, `staticDistMiddleware` constructs filesystem paths by concatenating the request pathname with the raw query string:

const relPath = `${url.pathname.slice(1)}${url.search}`;
const filePath = join(distDir, relPath);

Although the URL parser normalizes dot segments in `url.pathname`, it does not apply path normalization to `url.search`. An attacker can therefore place `../` segments in the query string, which `path.join()` interprets as traversal sequences. Because the resulting path is not checked to ensure it remains within the configured static directory, it can resolve to files elsewhere on the host filesystem.

The extension allow-list does not prevent exploitation because it is applied to the combined pathname and query string. An attacker can satisfy the check by ending the query with an allowed extension such as `.json`, `.js`, `.css`, or `.html`. If the resolved target is a regular file, the middleware returns its contents and discloses its resolved filesystem location in the `X-Source-Path` response header.

In the assessed release, this middleware is not registered during an ordinary development-mode `vite dev` run. The vulnerable route is reachable when Vite’s serve command runs in production mode, such as with `vite --mode production`, and the server is accessible to an untrusted network.

Impact

An unauthenticated remote attacker who can reach an affected server can read files outside the intended distribution, build-output, and public directories. Accessible targets are limited to files readable by the server process whose names end in an allow-listed extension, but these may include application source code, JavaScript configuration, package metadata, source maps, and JSON files containing credentials, tokens, or other sensitive data.

The `X-Source-Path` header also reveals the resolved location of successfully retrieved files, assisting further filesystem discovery. The demonstrated impact is a confidentiality breach; this issue does not establish file modification, code execution, availability impact, or exposure through a normal production deployment.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
@builder.io/qwik-city≤ 1.20.0
1.20.0
1.20.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@builder.io/qwik-city
Corregida 1.20.1 -10 d 1.20.4 no afectada
Versiones corregidas1.20.1
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/QwikDev/qwik/security/advisories/GHSA-7g9h-pv6m-p3mw

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