Intel

AIKIDO-2026-616346

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

Cross-Site Scripting (XSS)GHSA-2rp4-x2j7-qmcc Published 2 days ago

35

Low Risk

This Affects:

PHPcraftcms/cms
5.0.0 - 5.10.7
Fixed in 5.10.8
Are you affected? Scan for Free

TL;DR

Craft CMS renders an element's draft name in control-panel chip and card labels without HTML-encoding it, while the surrounding path segments are encoded. A low-privilege author who can create a draft controls the draft name and can store a script payload that runs when another control-panel user is shown that element's chip or card. The payload executes in the victim's authenticated control-panel origin and can read the CSRF token and issue actions as that user, including higher-privileged accounts. The fix HTML-encodes the draft name before output.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant control-panel access to users who can create element drafts.

Background info

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

How to fix this

Upgrade the craftcms/cms library to the patch version.