craftcms/cms
Affected
- introduced
4.5.0-RC1, fixed4.16.19(ecosystem)
Fixed versions
4.16.19
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-27126
Craft CMS has Stored XSS in Table Field via "HTML" Column Type
A stored Cross-site Scripting (XSS) vulnerability exists in the editableTable.twig component when using the html column 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
allowAdminChanges must be enabled in production, which is against our security recommendations.Steps to Reproduce
Single-line text - Note: The vulnerable Column Type is html, but it's not available in the UI dropdown.html <img src=x onerror="alert('XSS')"> Static RowscURL directlytypes[craft-fields-Table][columns][col3][type] parameter from singleline to htmlResources
https://github.com/craftcms/cms/commit/f5d488d9bb6eff7670ed2c2fe30e15692e92c52b
Medium Basis: The source's own band: MODERATE
4.5.0-RC1, fixed 4.16.19 (ecosystem)4.16.19
The export has no generic command for this ecosystem.
5.0.0-RC1, fixed 5.8.23 (ecosystem)5.8.23
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0