Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Duplicate Advisory: Craft CMS Vulnerable to Stored XSS in Settings Names and Field Options

0
Medium
Published: 06/21/2026 (06/21/2026, 15:31:25 UTC)
Source: GCVE Database
Product: craftcms/cms

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Affected software

Packagistghsa
craftcms/cms
Affected versions
>=5.0.0-RC1

Run 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

AILast updated: 08/07/2026, 07:01:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses