Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker with author account stores XSS payload in Structure entry title
-
DeliveryServer HTML-encodes title into data-title attribute safely
-
ExploitAdmin opens Structure section table view
-
InstallAdmin drags entry beneath poisoned entry
-
C2jQuery .data() decodes attribute, returning raw payload string
-
ExecutePayload concatenated into HTML without re-encoding
-
ImpactArbitrary JavaScript executes in admin browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold at minimum an Author-level Craft CMS control panel account with create/edit access to at least one Structure-type section. The victim must hold an admin role or have the saveEntries permission for that same Structure section, and must actively perform a drag-and-drop reorder operation in the Structure table view - passive page visits, searches, or edits do not trigger payload execution. The Craft CMS installation must have at least one Structure-type section configured (not all deployments use this section type). Limiting factors beyond the author account requirement: the payload only fires on drag (a deliberate, non-incidental interaction), the victim's elevated permissions must be active at trigger time, and the attack surface is confined to the control panel (not the public-facing site). Single-user installations, installations without Structure sections, and installations where author accounts are trusted are not meaningfully at risk. |
| Impact | The CVSS 4.0 score of 5.9 (Medium) is appropriate and well-calibrated given the multiple compounding prerequisites. The CVSS vector (AV:N/AC:L/AT:P/PR:L/UI:P) captures that while the network vector is wide and complexity low from the attacker's perspective, exploitation depends on specific attack requirements (AT:P): the target installation must use Structure-type sections, and the victim must actively perform a drag-reorder operation rather than merely visiting the page. The integrity impact is rated High (VI:H) because successful XSS execution in an admin's session could enable account takeover, credential theft, or execution of privileged CMS actions. No EPSS score was provided in the source data; given the requirement for a pre-existing author account and a specific victim interaction, mass or automated exploitation is unlikely, placing the practical risk well below what an unqualified 'Medium' CVSS might imply for most deployments. The primary threat model is a malicious insider, a compromised author account used as a pivot, or a social-engineering scenario targeting an admin during routine content management tasks. No active exploitation (KEV) is confirmed and no public exploit code has been identified. |
| Exploit ScenarioDerived | A malicious Craft CMS author creates an entry titled with an HTML-encoded XSS payload (e.g., a cookie-exfiltration script) inside a Structure section. When a target administrator later opens the Structure table view and drags any entry beneath the poisoned entry during routine content organization - a normal workflow action - the drag event reads the stored title via jQuery .data(), which decodes the payload and injects it into the DOM as live HTML, executing the script in the admin's browser session and potentially exfiltrating session tokens to an attacker-controlled endpoint. No public exploit code has been identified, but the attack requires no specialized tooling beyond a valid author account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
Stored XSS in Craft CMS 5.0.0-RC1 through 5.9.22 allows an author-level control panel user to execute arbitrary JavaScript in the session of an admin or any privileged user with saveEntries permission on the same Structure section. The vulnerability arises from an HTML encode/decode mismatch: the server safely escapes an entry title into a data-title attribute, but jQuery's .data() method re-decodes the value before it is concatenated back into HTML without re-escaping, bypassing the initial sanitization. No active exploitation (CISA KEV) or public exploit code has been identified at time of analysis; the vendor shipped a fix in version 5.9.23.
RemediationAI
Upgrade Craft CMS to version 5.9.23 or later, which resolves this issue per the vendor security advisory GHSA-xrqc-p465-2xvg (commit 162321e899cc97517fb6f5a02b5528f549d0c6cc). If an immediate upgrade is not feasible, restrict untrusted author-level accounts from creating or editing entries in any Structure-type sections - this eliminates access to the drag-reorder trigger, though it prevents those users from contributing to Structure sections entirely. As an additional defensive measure, audit existing entry titles in all Structure sections for suspicious script content (e.g., strings containing <script, javascript:, onerror=, or event handler patterns) before applying the patch, since malicious payloads may already be stored. Do not rely solely on admin-side Content Security Policy headers as a compensating control, as CSP effectiveness depends on header configuration that varies by deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS), specifically a second-order injection created by a double encode/decode cycle. The Craft CMS control panel correctly HTML-encodes the entry title when serializing it into the data-title HTML attribute server-side. However, jQuery's .data() API automatically decodes HTML entities when reading any data-* attribute, returning the raw, unescaped string. This decoded value is then concatenated directly into a new HTML fragment during the drag-and-drop reorder operation in Structure-section table view, without re-encoding - introducing the attacker's payload into the DOM as live markup. The affected product is cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* covering versions 5.0.0-RC1 through 5.9.22. The mechanism is a classic jQuery .data() unserialization pitfall where a trusted DOM path is assumed to be safe after the first encoding pass.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
AC:H reflects the drag-trigger specificity and Structure section requirement; PR:L for author role; S:C because victim's admin session is the impacted scope; I:H for potential admin-level action execution.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 through 5.9.22, an author-level control panel user can store a malicious JavaScript payload in an entry title. When an admin, or any control panel user with saveEntries for the same Structure section, drags another entry under the poisoned entry in table view, the payload executes in the victim’s session. The issue is exploitable because the title is escaped into data-title by the server, decoded again by the browser, read with jQuery .data('title'), and then concatenated into a new HTML string without attribute escaping. To exploit, an attacker must have an existing control panel account (Author role minimum), the victim must perform a drag operation (not just visit the page), and the victim’s session needs to be elevated at trigger time. This issue has been fixed in version 5.9.23.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-41153
GHSA-xrqc-p465-2xvg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB