CVE-2026-56393: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
Craft CMS 4.x (>= 4.0.0-RC1, < 4.17.0-beta.1) and 5.x (>= 5.0.0-RC1, < 5.9.0-beta.1) contain multiple stored cross-site scripting vulnerabilities where settings names and field option labels are rendered without sanitization (e.g., via the checkbox.twig template, which used {{ label|raw }}). An authenticated administrator (with allowAdminChanges enabled) can inject malicious payloads into section names, volume names, user group names, global set names, generated field names, checkbox/radio option labels, and custom source labels, causing arbitrary JavaScript to execute in other users' control-panel sessions. Fixed in 4.17.0-beta.1 and 5.9.0-beta.1.
AI Analysis
Technical Summary
Craft CMS 4.x (>=4.0.0-RC1 <4.17.0-beta.1) and 5.x (>=5.0.0-RC1 <5.9.0-beta.1) have multiple stored cross-site scripting vulnerabilities due to improper neutralization of input during web page generation. Specifically, settings names and field option labels are rendered without sanitization (e.g., via the checkbox.twig template using {{ label|raw }}), enabling an authenticated administrator with allowAdminChanges enabled to inject malicious JavaScript into various UI elements such as section names, volume names, user group names, global set names, generated field names, checkbox/radio option labels, and custom source labels. This results in arbitrary JavaScript execution in other users' control panel sessions. The issue is fixed in versions 4.17.0-beta.1 and 5.9.0-beta.1.
Potential Impact
An authenticated administrator with allowAdminChanges enabled can inject malicious JavaScript payloads into multiple UI elements, causing arbitrary script execution in other users' control panel sessions. This could lead to session hijacking, unauthorized actions, or other impacts associated with stored cross-site scripting in the administrative interface. The vulnerability requires high privileges (administrator) and user interaction (authenticated users accessing the control panel).
Mitigation Recommendations
Fixed versions are available starting from 4.17.0-beta.1 and 5.9.0-beta.1. Users should upgrade to these or later versions to remediate the vulnerability. Since this is not a cloud service, patching the affected software is required. There is no vendor advisory content provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed beyond the fixed versions stated; therefore, verify with the vendor advisory for the latest remediation guidance.
CVE-2026-56393: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
Description
Craft CMS 4.x (>= 4.0.0-RC1, < 4.17.0-beta.1) and 5.x (>= 5.0.0-RC1, < 5.9.0-beta.1) contain multiple stored cross-site scripting vulnerabilities where settings names and field option labels are rendered without sanitization (e.g., via the checkbox.twig template, which used {{ label|raw }}). An authenticated administrator (with allowAdminChanges enabled) can inject malicious payloads into section names, volume names, user group names, global set names, generated field names, checkbox/radio option labels, and custom source labels, causing arbitrary JavaScript to execute in other users' control-panel sessions. Fixed in 4.17.0-beta.1 and 5.9.0-beta.1.
CVSS v4.0
Score 4.6medium
Affected software
pkg:github/craftcms/cmsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Craft CMS 4.x (>=4.0.0-RC1 <4.17.0-beta.1) and 5.x (>=5.0.0-RC1 <5.9.0-beta.1) have multiple stored cross-site scripting vulnerabilities due to improper neutralization of input during web page generation. Specifically, settings names and field option labels are rendered without sanitization (e.g., via the checkbox.twig template using {{ label|raw }}), enabling an authenticated administrator with allowAdminChanges enabled to inject malicious JavaScript into various UI elements such as section names, volume names, user group names, global set names, generated field names, checkbox/radio option labels, and custom source labels. This results in arbitrary JavaScript execution in other users' control panel sessions. The issue is fixed in versions 4.17.0-beta.1 and 5.9.0-beta.1.
Potential Impact
An authenticated administrator with allowAdminChanges enabled can inject malicious JavaScript payloads into multiple UI elements, causing arbitrary script execution in other users' control panel sessions. This could lead to session hijacking, unauthorized actions, or other impacts associated with stored cross-site scripting in the administrative interface. The vulnerability requires high privileges (administrator) and user interaction (authenticated users accessing the control panel).
Mitigation Recommendations
Fixed versions are available starting from 4.17.0-beta.1 and 5.9.0-beta.1. Users should upgrade to these or later versions to remediate the vulnerability. Since this is not a cloud service, patching the affected software is required. There is no vendor advisory content provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed beyond the fixed versions stated; therefore, verify with the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-21T12:37:58.434Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a37ed4baaf2dc2701b2276e
Added to database: 06/21/2026, 13:55:23 UTC
Last enriched: 06/21/2026, 14:09:53 UTC
Last updated: 06/21/2026, 14:57:10 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.