GHSA-W945-7GG9-JM4V
Cross-site scripting (XSS) via invalid UTF-8 in URL validation
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-W945-7GG9-JM4V divulgada · CVSS 2 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Users who can edit `url` fields can store `javascript:` URLs that Kirby's URL validation would otherwise reject.
You're affected if
- Kirby 3.0.0–4.9.7 or 5.0.0–5.6.3
- Users you do not fully trust can edit content with a `url` field or your site checks visitor input with `V::url()`
- Your templates output these values as a link target, e.g. `<a href="<?= $page->website() ?>">`, also with `->esc()`
This covers `url` fields, including inside structure fields, and your own code that calls `Kirby\Toolkit\V::url()`.
Potential damage
- Can store `javascript:` URLs that the validation would otherwise reject
- Can run JavaScript in the browser of anyone who clicks such a link on the site
- Cannot run JavaScript unless someone clicks the link
- Cannot store such URLs in `link` fields
Patches
- Fixed in Kirby 4.9.8
https://github.com/getkirby/kirby/releases/tag/4.9.8and Kirby 5.6.4https://github.com/getkirby/kirby/releases/tag/5.6.4 - The URL validator now treats respective errors as invalid.
- Values stored before the update are not re-checked.
Workarounds
- Only let fully trusted users edit `url` fields.
- On Kirby 4.9.1+ or 5.4.1+, output `url` field values with `->toUrl()` or `Html::a()` instead of echoing them into `href`.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistgetkirby/cms |
Corregida | 4.9.8, 5.6.4 | — | — |
4.9.85.6.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/getkirby/kirby/security/advisories/GHSA-w945-7gg9-jm4vLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
