Duplicate Advisory: Craft CMS Vulnerable to Stored XSS in Settings Names and Field Options
Craft CMS versions 4.x (from 4.0.0-RC1 up to but not including 4.17.0-beta.1) and 5.x (from 5.0.0-RC1 up to but not including 5.9.0-beta.1) contain multiple stored cross-site scripting (XSS) vulnerabilities. These vulnerabilities arise because settings names and field option labels are rendered without proper sanitization, allowing an authenticated administrator with allowAdminChanges enabled to inject malicious JavaScript payloads. This can lead to arbitrary script execution in other users' control-panel sessions. The issue is fixed in versions 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 XSS vulnerabilities due to unsanitized rendering of settings names and field option labels, such as in the checkbox.twig template using {{ label|raw }}. An authenticated administrator with allowAdminChanges enabled can inject malicious JavaScript into various UI elements (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 vulnerabilities are fixed starting from 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, leading to stored cross-site scripting that executes in other users' control-panel sessions. This can compromise the confidentiality and integrity of user sessions and potentially allow unauthorized actions within the control panel. The CVSS score is 4.8 (medium severity), reflecting limited impact due to required privileges and user interaction.
Mitigation Recommendations
Upgrade Craft CMS to version 4.17.0-beta.1 or later for the 4.x branch, or to version 5.9.0-beta.1 or later for the 5.x branch, where the stored XSS vulnerabilities have been fixed. No other mitigations are indicated by the advisory.
Duplicate Advisory: Craft CMS Vulnerable to Stored XSS in Settings Names and Field Options
Description
Craft CMS versions 4.x (from 4.0.0-RC1 up to but not including 4.17.0-beta.1) and 5.x (from 5.0.0-RC1 up to but not including 5.9.0-beta.1) contain multiple stored cross-site scripting (XSS) vulnerabilities. These vulnerabilities arise because settings names and field option labels are rendered without proper sanitization, allowing an authenticated administrator with allowAdminChanges enabled to inject malicious JavaScript payloads. This can lead to arbitrary script execution in other users' control-panel sessions. The issue is fixed in versions 4.17.0-beta.1 and 5.9.0-beta.1.
CVSS v3.1
Score 4.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
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 XSS vulnerabilities due to unsanitized rendering of settings names and field option labels, such as in the checkbox.twig template using {{ label|raw }}. An authenticated administrator with allowAdminChanges enabled can inject malicious JavaScript into various UI elements (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 vulnerabilities are fixed starting from 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, leading to stored cross-site scripting that executes in other users' control-panel sessions. This can compromise the confidentiality and integrity of user sessions and potentially allow unauthorized actions within the control panel. The CVSS score is 4.8 (medium severity), reflecting limited impact due to required privileges and user interaction.
Mitigation Recommendations
Upgrade Craft CMS to version 4.17.0-beta.1 or later for the 4.x branch, or to version 5.9.0-beta.1 or later for the 5.x branch, where the stored XSS vulnerabilities have been fixed. No other mitigations are indicated by the advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f95g-vm94-46c3
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a7573b9bf8831d539d940dd
Added to database: 08/07/2026, 05:57:13 UTC
Last enriched: 08/07/2026, 07:01:29 UTC
Last updated: 08/07/2026, 07:01:29 UTC
Views: 2
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.