VDB
Sign up
MEDIUM5.3

GHSA-3x4w-mxpf-fhqq

Craft CMS Vulnerable to Stored XSS in Revision Context Menu

Quick fix

GHSA-3x4w-mxpf-fhqq — craftcms/cms: upgrade to the fixed version with the command below.

composer require craftcms/cms:^5.9.11

Details

The revision/draft context menu in the element editor renders the creator’s `fullName` as raw HTML due to the use of `Template::raw()` combined with `Craft::t()` string interpolation. A low-privileged control panel user (e.g., Author) can set their fullName to an XSS payload via the profile editor, then create an entry with two saves.

If an administrator is logged in and executes a specifically crafted payload while an elevated session is active, the attacker’s account can be elevated to administrator.

Users should update to Craft 5.9.11 with the patch to mitigate the issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/craftcms/cms
Introduced in: 5.9.0-beta.1Fixed in: 5.9.11
Fixcomposer require craftcms/cms:^5.9.11

References