llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · getkirby/cms

GHSA-M5VP-X463-4MH9

Cross-site scripting (XSS) via raw text elements in SVG and XML files

Parche disponible
Descargar PNG JSON
CVSS 4.0
7.4
Alta
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones4.9.8 · 5.6.4
Exposición1 dDesde la divulgación, 18 nov 2026, 4:38 a. m.
Detección13 hDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
04:38 a. m.
05:31 p. m.
05:57 p. m.
04:38 a. m.
01:58 p. m.
11:18 p. m.
08:37 a. m.
05:57 p. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-M5VP-X463-4MH9 divulgada · CVSS 7.4 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Users who can upload files can store SVG or XML files with JavaScript that runs when a site embeds the file inline.

You're affected if
  • Kirby 4.9.7 or 5.6.0–5.6.3
  • Users you do not fully trust can upload or replace files
  • A file blueprint accepts SVG files (the default) or XML files
  • Your site embeds uploaded SVG or XML files inline, e.g. with the `svg()` helper

This also covers plugin code that checks or cleans SVG/XML with `Kirby\Sane\Sane`, `Kirby\Sane\Svg`, `Kirby\Sane\Xml` or `Kirby\Toolkit\Dom::sanitize()`.

Potential damage
  • Can store SVG or XML files with JavaScript that the upload checks would otherwise reject
  • Can run that JavaScript in the browser of anyone who views a page that embeds the file inline
  • Can then act with that person's permissions, e.g. an admin's, while they are logged in to the Panel
  • Cannot run JavaScript when the file is opened from its media URL or embedded with `<img>`
  • Cannot gain higher permissions unless such a user views the page
  • Cannot bypass file name or extension rules (no `.php` or `.html` files)
Patches
  • Fixed in Kirby 4.9.8 https://github.com/getkirby/kirby/releases/tag/4.9.8 and Kirby 5.6.4 https://github.com/getkirby/kirby/releases/tag/5.6.4
  • `Kirby\Toolkit\Dom` now treats all HTML raw text elements as raw text.
  • Files uploaded before the update are not re-checked.
Workarounds
  • Deliver uploaded SVG and XML files from their media URL or with `<img src>` instead of embedding them inline.
  • Only let fully trusted users upload or replace SVG or XML files.
Credits

Thanks to Arpit Jain (@arpitjain099) for responsibly reporting the identified issue.

Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:L
AltoBajoNinguno
Integridad (posterior)SI:L
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
getkirby/cms≥ 4.9.6 < 4.9.8
getkirby/cms≥ 5.6.0 < 5.6.4
4.9.6
4.9.8
5.6.0
5.6.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistgetkirby/cms
Corregida 4.9.8, 5.6.4 — —
Versiones corregidas4.9.85.6.4
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/getkirby/kirby/security/advisories/GHSA-m5vp-x463-4mh9

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