4.6medium
Craft CMS - Stored XSS in Table Field via Row Heading Column Type
- Severity
- 4.6medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-6j87-m5qx-9fqp
Description
Craft CMS contains a stored cross-site scripting (XSS) vulnerability in the editableTable.twig component when using the 'Row Heading' column type. The application fails to sanitize input within row heading default values, allowing an attacker with an administrator account (with allowAdminChanges enabled) to inject arbitrary JavaScript that executes when another user views a page containing the affected table field. Affected versions are >= 4.5.0-beta.1 through 4.16.18 and >= 5.0.0-RC1 through 5.8.22; fixed in 4.16.19 and 5.8.23.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | from 4.5.0-beta.1 before 4.16.19, from 5.0.0-RC1 before 5.8.23 Not affected: 4.16.19, 5.8.23 | CVE List |
| craftcms/cms (Packagist) | from 4.5.0-beta.1 before 4.16.19, from 5.0.0-RC1 before 5.8.23 | GitHub Advisory Database |
All scores
| VulnCheck | 4.6medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Craft CMS contains a stored cross-site scripting (XSS) vulnerability in the editableTable.twig component when using the 'Row Heading' column type. The application fails to sanitize input within row heading default values, allowing an attacker with an administrator account (with allowAdminChanges enabled) to inject arbitrary JavaScript that executes when another user views a page containing the affected table field. Affected versions are >= 4.5.0-beta.1 through 4.16.18 and >= 5.0.0-RC1 through 5.8.22; fixed in 4.16.19 and 5.8.23.
GitHub Advisory Database
A stored Cross-site Scripting (XSS) vulnerability exists in the editableTable.twig component when using the Row Heading column type. The application fails to sanitize input within row headings, allowing an attacker to execute arbitrary JavaScript when another user views a page with the malicious table field.
Prerequisites
- An administrator account
allowAdminChangesmust be enabled in production, which is against security recommendations.
Steps to Reproduce
- Navigate to Settings → Fields and create a new field with Type: Table
- Add a Column Heading and set Column Type to
Row Heading - In Default Values section, add a row with the following payload:
<img src=x onerror="alert('XSS')"> - Enable
Static Rows - Use the field in any object (e.g., user profile fields) → then visit any user’s profile
- Notice the XSS execution
Resources
https://github.com/craftcms/cms/commit/7b372de262b8d9d2ce859f32780c3715719b6f5a
NVD (es)
Craft CMS contiene una vulnerabilidad de cross-site scripting (XSS) almacenado en el componente editableTable.twig al usar el tipo de columna ’Encabezado de Fila’. La aplicación no logra sanear la entrada dentro de los valores predeterminados del encabezado de fila, permitiendo a un atacante con una cuenta de administrador (con allowAdminChanges habilitado) inyectar JavaScript arbitrario que se ejecuta cuando otro usuario ve una página que contiene el campo de tabla afectado. Las versiones afectadas son >= 4.5.0-beta.1 hasta 4.16.18 y >= 5.0.0-RC1 hasta 5.8.22; corregido en 4.16.19 y 5.8.23.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56383 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6j87-m5qx-9fqp changed 2026-08-06 | CC-BY-4.0 |
| NVD | CVE-2026-56383 changed 2026-10-25 | Public domain |