Craft CMS Vulnerable to Stored XSS in Revision Context Menu
Package
Affected versions
>= 5.9.0-beta.1, <= 5.9.10
Patched versions
5.9.11
Description
Published to the GitHub Advisory Database
Mar 18, 2026
Reviewed
Mar 18, 2026
Last updated
Mar 18, 2026
The revision/draft context menu in the element editor renders the creator’s
fullNameas raw HTML due to theuse of
Template::raw()combined withCraft::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.
References