GHSA-4355-7HM8-P747
Open redirect: protocol-relative redirect protection in `redirect()` bypassable with backslashes
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 1.20.2 | @builder.io/qwik-city · -7 d desde divulgación | |
| Divulgación | Publicada | GHSA-4355-7HM8-P747 divulgada · CVSS 6.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
`requestEvent.redirect(status, url)` deliberately neutralizes protocol-relative
redirect targets so that a value the developer believes is a same-origin *path*
(e.g. `'/' + userInput`) cannot be turned into a cross-origin redirect. This is an
intentional security control — it is covered by unit tests
(`request-event.unit.ts`: "should fix protocol-relative URL redirects starting with //",
`resolve-request-handlers.unit.ts`: "should prevent redirect with protocol-relative URL //evil.com").
The control only recognizes forward-slash protocol-relative forms (`//host`,
`///host`). It does not handle the backslash variants (`/\host`, `\/host`,
`\\host`). Per the WHATWG URL spec, browsers treat `\` as `/` in HTTP(S) URLs, so a
`Location` header of `/\evil.com` is resolved by the browser to `https://evil.com/`.
The framework's protection is therefore bypassable.
Impact
Open redirect from a trusted origin. Usable for phishing and, more importantly, as a
primitive in OAuth/OIDC `redirect_uri`/`return_to` token-theft chains and for
bypassing allowlists that only check that a value "starts with `/`".
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@builder.io/qwik-city |
Corregida | 1.20.2 | -7 d | 1.20.4 no afectada |
1.20.2Arsenal 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-4355-7hm8-p747Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
