Skip to main content

Craft CMS CVE-2026-55793

| EUVDEUVD-2026-41153 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-01 security-advisories@github.com GHSA-xrqc-p465-2xvg
5.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker with author account stores XSS payload in Structure entry title
  2. Delivery
    Server HTML-encodes title into data-title attribute safely
  3. Exploit
    Admin opens Structure section table view
  4. Install
    Admin drags entry beneath poisoned entry
  5. C2
    jQuery .data() decodes attribute, returning raw payload string
  6. Execute
    Payload concatenated into HTML without re-encoding
  7. Impact
    Arbitrary 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

CMS 5.0.0-RC1, < 5.9.23

Affected Packages

composer craftcms/cms fix: 5.9.53
euvd cms_5_0_0_rc1 fix: 5.9.23

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

Vendor (github) PRIMARY 5.9 MEDIUM
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 23:02 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Medium
popular CMS in agency and mid-enterprise web projects
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy