{"id":"CVE-2026-56383","aliases":["CVE-2026-56383","GHSA-6j87-m5qx-9fqp"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS - Stored XSS in Table Field via Row Heading Column Type","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n## Prerequisites\n* An administrator account\n* `allowAdminChanges` must be enabled in production, which is [against security recommendations](https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production).\n\n## Steps to Reproduce\n1. Navigate to **Settings** → **Fields** and create a new field with Type: **Table**\n1. Add a **Column Heading** and set **Column Type** to `Row Heading`\n1. In **Default Values** section, add a row with the following payload:\n    ```html\n    <img src=x onerror=\"alert('XSS')\">\n    ```\n1. Enable `Static Rows`\n1. Use the field in any object (e.g., user profile fields) → then visit any user’s profile\n1. Notice the XSS execution\n\n## Resources\n\nhttps://github.com/craftcms/cms/commit/7b372de262b8d9d2ce859f32780c3715719b6f5a","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-02-25T19:11:31.000Z","modified":"2026-11-08T14:06:09.197Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"4.5.0-beta.1","fixed":"4.16.19","status":"affected"},{"type":"semver","version":"4.16.19","status":"unaffected"},{"type":"semver","introduced":"5.0.0-RC1","fixed":"5.8.23","status":"affected"},{"type":"semver","version":"5.8.23","status":"unaffected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.5.0-beta.1","status":"affected","fixed":"4.16.19"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.8.23"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-6j87-m5qx-9fqp","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/7b372de262b8d9d2ce859f32780c3715719b6f5a","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-stored-xss-in-table-field-via-row-heading-column-type","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56383","tags":["advisory"],"sources":["ghsa"]},{"url":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/releases/tag/4.16.19","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.8.23","tags":["web"],"sources":["ghsa"]}],"credits":["mHe4am"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-23T14:00:40.463Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56383","url":"https://www.cve.org/CVERecord?id=CVE-2026-56383","licence":"CVE Terms of Use","modified":"2026-11-08T14:06:09.197Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6j87-m5qx-9fqp","url":"https://github.com/advisories/GHSA-6j87-m5qx-9fqp","licence":"CC-BY-4.0","modified":"2026-08-06T21:01:02.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56383","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56383","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.329Z","epss":{"score":0.00218,"percentile":0.13018,"date":"2026-12-01T12:00:22.000Z"}}