GHSA-JWMJ-4F62-CFW5
Server-Side Request Forgery (SSRF) via `/__image_info` endpoint in Qwik Vite dev server plugin
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 1.19.1 | @builder.io/qwik · -204 d desde divulgación | |
| Divulgación | Publicada | GHSA-JWMJ-4F62-CFW5 divulgada · CVSS 5.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `@builder.io/qwik` Vite plugin registers a `/__image_info` middleware endpoint in the development server that fetches arbitrary HTTP/HTTPS URLs provided via the `url` query parameter without any authentication, origin validation, or allowlist restrictions. This endpoint is enabled by default (gated by `imageDevTools` option which defaults to `true`) and allows any network-adjacent attacker to use the development server as an open SSRF proxy to probe internal network services, access cloud metadata endpoints, and potentially read local files via the `file://` protocol scheme (depending on the Node.js runtime version).
Impact
An attacker on the same network as the Qwik development server can:
- Port scan internal services: The binary response (200 with image data vs 404) enables port scanning of internal network hosts. Combined with timing analysis, an attacker can enumerate open ports on internal hosts.
- Access cloud metadata endpoints: On cloud-hosted development environments (AWS, GCP, Azure), the attacker can probe instance metadata endpoints (e.g., `http://169.254.169.254/`) to detect the cloud provider and potentially infer instance roles. While the full metadata response is not returned (only image metadata is extracted), the binary success/failure response reveals service availability.
- Read local files (Node.js version dependent): The `file://` protocol is accepted by the URL scheme validation. Node.js native `fetch` in v20+ does not support `file://`, but alternative fetch implementations or future Node.js versions might. If `file://` is supported, the attacker can read any file accessible to the Node.js process.
- Network reconnaissance: The SSRF can be used to map the internal network topology by probing common internal IP ranges and service ports.
Impact scope: This vulnerability is limited to development environments. Production deployments do not include the Vite dev server middleware. However, development servers are commonly exposed in shared team environments, CI/CD pipelines, and cloud-based development workspaces.
Desglose de métricas
Versiones afectadas
1.19.0Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@builder.io/qwik |
Corregida | 1.19.1 | -204 d | 1.20.4 no afectada |
1.19.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/QwikDev/qwik/security/advisories/GHSA-jwmj-4f62-cfw5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
