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

GHSA-GRG7-V3QM-GJMM

Cross-site scripting (XSS) from imported table and iframe HTML in the site frontend

Sin parche publicado
Descargar PNG JSON
CVSS 4.0
8.5
Alta
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición64 dDesde la divulgación, 16 sept 2026, 5:53 a. m.
Detección63 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada +1
16 sept 26
18 nov 26
20 nov 26
16 sept 26
2 oct 26
18 oct 26
3 nov 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-GRG7-V3QM-GJMM divulgada · CVSS 8.5 (GitHub)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
TL;DR

This vulnerability affects Kirby sites where a `blocks`/`layout` field is filled by pasting HTML from a source that may not be fully trusted. It requires an authenticated Panel user with update permission to such a field, or write access to content files through another vector, e.g. a frontend form.

The injected code executes in the site frontend only; the Panel does not render imported block content as HTML. Panel sessions are still at risk, as a script in the frontend can act against Kirby's API with the session of a logged in user browsing the site.

This vulnerability is of high severity for affected sites.

----

Affected components

Kirby's HTML importer for blocks converts arbitrary HTML into structured blocks. The Panel calls it from the paste route of the `blocks` field, which the `layout` field inherits, and Kirby calls it whenever a `blocks` field value is not valid JSON (including through the `$field->toBlocks()` method used in templates).

Two of the elements it recognizes were stored as raw source markup instead of being decomposed into block content: tables, and iframes whose `src` is not a known video URL.

Impact

In affected releases, the importer stored imported tables and non-video iframes as unsanitized HTML. Everything inside an imported `<table>` was kept as it came, including scripts and event handler attributes, and imported `<iframe>` elements kept every attribute.

The stored markup is emitted unchanged when the field is rendered, so the injected script runs in the browsers of site visitors and logged in users browsing the site. As the site usually runs on the same origin as the Panel API, this can give the attacker control of the victim's Panel session.

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, imported tables are sanitized against a strict allowlist before they are stored, and imported iframes that do not resolve to a known video URL are dropped.

Note that content imported before the patch may still contain malicious markup.

Workarounds

Until you can update:

  • Remove the `markdown` block from the fieldsets of your `blocks` and `layout` fields, in the blueprint or globally with the `blocks.fieldsets` option. This covers pasting in the Panel.
  • Do not paste or import HTML from sources you do not fully trust.
Credits

Thanks to Bruno Meilick (@bnomei) 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:N
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:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
getkirby/cms≤ 4.9.5
4.9.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistgetkirby/cms
Sin parche — — —
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-grg7-v3qm-gjmm

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