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.
Problem types
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
4.5.0-beta.1 (semver) before 4.16.19
4.16.19 (semver)
5.0.0-RC1 (semver) before 5.8.23
5.8.23 (semver)
Credits
mHe4am
References
github.com/...ms/cms/security/advisories/GHSA-6j87-m5qx-9fqp
github.com/...ms/cms/security/advisories/GHSA-6j87-m5qx-9fqp (GHSA Advisory GHSA-6j87-m5qx-9fqp)
github.com/...ommit/7b372de262b8d9d2ce859f32780c3715719b6f5a
www.vulncheck.com/...table-field-via-row-heading-column-type (VulnCheck Advisory: Craft CMS - Stored XSS in Table Field via Row Heading Column Type)