Intel

AIKIDO-2026-11114

craftcms/cms is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-xrqc-p465-2xvg Published 3 days ago

54

Medium Risk

This Affects:

PHPcraftcms/cms
4.1.0 - 5.9.22
Fixed in 5.9.23
Are you affected? Scan for Free

TL;DR

The craftcms/cms control panel element table sorter builds expand/collapse toggle buttons for nested structure rows by interpolating the ancestor element title from a data attribute into an HTML string for title and aria-label. Titles that contain quotes or angle brackets can break out of those attributes and inject markup or script when another control panel user views or reorders nested elements. The fix constructs the button with jQuery attribute maps so the title is set safely instead of via string concatenation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Cross-Site Scripting (XSS) in versions 4.1.0 - 5.9.22.

How to fix this

Upgrade the craftcms/cms library to the patch version.