Craft CMS has Stored XSS in Table Field via "HTML" Column Type
Package
Affected versions
>= 4.5.0-RC1, <= 4.16.18
>= 5.0.0-RC1, <= 5.8.22
Patched versions
4.16.19
5.8.23
Description
Published to the GitHub Advisory Database
Feb 23, 2026
Reviewed
Feb 23, 2026
Published by the National Vulnerability Database
Feb 24, 2026
Last updated
Feb 24, 2026
A stored Cross-site Scripting (XSS) vulnerability exists in the
editableTable.twigcomponent when using thehtmlcolumn type. The application fails to sanitize the input, allowing an attacker to execute arbitrary JavaScript when another user views a page with the malicious table field.Prerequisites
allowAdminChangesmust be enabled in production, which is against our security recommendations.Steps to Reproduce
Single-line texthtml, but it's not available in the UI dropdown.Static RowscURLdirectlytypes[craft-fields-Table][columns][col3][type]parameter fromsinglelinetohtmlResources
craftcms/cms@f5d488d
References