GHSA-5HWF-W8MW-22C7
Cross-site scripting (XSS) from language variables that overwrite Kirby's own translations
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-5HWF-W8MW-22C7 divulgada · CVSS 7.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
TL;DR
This vulnerability affects multi-language Kirby sites that might have potential attackers in the group of authenticated Panel users who may create or update languages.
Single-language sites are *not* affected, as they have no language variables.
This vulnerability is of high severity for affected sites.
----
Affected components
Kirby lets you define your own language variables for each language. They are stored in the language file and merged into the translation strings the Panel and the site use.
The variables of a language can be set through the REST API endpoints that create and update a language, which the Panel's language settings call, and through `Language::create()` and `$language->update()` in site or plugin code. Both entry points require the `languages.create` or `languages.update` permission.
Impact
In affected releases, a language variable could use the key of one of Kirby's own translation strings and replace it. The Panel renders a number of its translation strings as HTML, so a replaced string could carry markup that the browser executes.
An authenticated Panel user who may create or update languages could therefore store a script that runs for every Panel user working in that language, without any interaction beyond opening the Panel. The victim can be any user, so a low-privileged account can be escalated to a full administrator account.
Patches
The problem has been patched in Kirby 5.6.0 https://github.com/getkirby/kirby/releases/tag/5.6.0 and Kirby 4.9.6 https://github.com/getkirby/kirby/releases/tag/4.9.6.
In these releases, Kirby rejects a language variable whose key belongs to one of its own translation strings, on both language creation and language update. Variables that were stored before the patch are ignored when the translations are assembled, so no clean-up of existing language files is required.
Workarounds
Until you can update, remove the `languages.create` and `languages.update` permissions from any role whose users you do not fully trust.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistgetkirby/cms |
Sin parche | — | — | — |
Arsenal 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-5hwf-w8mw-22c7Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
