Cross-site scripting in Craft CMS - #VU134656
Published: June 16, 2026
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary script in a victim's browser.
The vulnerability exists due to cross-site scripting in the _includes/forms/checkbox.twig template when rendering stored settings names and field option labels. A remote user can inject a crafted name or label value to execute arbitrary script in a victim's browser.
Exploitation requires administrative access, and the issue is exposed when allowAdminChanges is enabled in production. Some cases also require a victim to visit affected control panel pages where the stored value is rendered.