GHSA-H9JH-V8VC-M5RP
Stored XSS via unescaped Twig rendering in "Generated Fields"
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-H9JH-V8VC-M5RP divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft’s Field Layout “Generated Fields” feature (added in 5.7.0) computes a display value for each element by rendering an admin-authored Twig template against that element’s own data, then caches and re-displays the result on every subsequent element-index Table/Card view.
The rendering call explicitly disables Twig’s autoescaping for the entire template, and the two render paths that later display the cached value (Table view and Card view) never apply `Html::encode()` either.
As a result, if the admin’s template references any field that an ordinary content editor can write to, that editor can store an HTML/JavaScript payload that will execute in the authenticated Control Panel session of every subsequent viewer of that index, including an administrator.
Impact
A low-privilege content editor’s stored field value executes arbitrary JavaScript in the authenticated Control Panel session of any higher-privileged user who views an index containing that Generated Field — including an administrator.
This is a confused-deputy pattern: a feature intended to let admins compute derived display values from an element’s own field data instead lets any user who can edit that field data inject a script that executes in a strictly more privileged viewer’s session — the exact privilege-boundary violation that makes stored XSS in an admin panel context significantly more severe than typical front-end stored XSS.
Report ID: 1614
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.10.13 | — | — |
5.10.13Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-h9jh-v8vc-m5rpLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
