Skip to main content

Craft CMS CVE-2026-72787

| EUVDEUVD-2026-57447 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-12 VulnCheck GHSA-xh8r-pv2v-rc22
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege control-panel account
  2. Delivery
    Create element draft with XSS payload as draft name
  3. Exploit
    Victim administrator browses element index or relation field
  4. Execution
    Stored payload executes in admin's browser session
  5. Persist
    Read CSRF token from Craft.csrfTokenValue
  6. Impact
    POST to users/save-user to create new administrator account

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

The attacker must hold a Craft CMS control-panel account with permission to edit entries in at least one section and create drafts - a standard author or editor role, not an administrator. No special server-side configuration, plugin, or non-default setting is required; the vulnerable draftName rendering path is active in all Craft CMS 5.x installations from 5.0.0-RC1. Exploitation is limited by two factors: first, the attacker cannot be anonymous - a low-privilege control-panel account is required (PR:L); second, a higher-privileged user must be shown the affected element's chip or card, which occurs during routine element index browsing or when relation/element-selection fields reference the element - passive but dependent on normal admin activity rather than targeted social engineering. There is no path to unauthenticated or self-contained exploitation.

Impact

The CVSS 4.0 score of 5.1 (Medium) correctly captures the cross-privilege stored XSS character of this vulnerability: network-reachable, low-complexity exploitation by a low-privilege authenticated user (PR:L, UI:P), with subsequent-system impact of Low for both confidentiality and integrity (SC:L/SI:L). Despite the moderate base score, real-world risk is materially higher than the number suggests. The victim interaction required (UI:P) is routine day-to-day activity - browsing element indexes and relation fields - not an adversarially-crafted phishing action. The GHSA advisory confirmed end-to-end impact on Craft Pro: an author-level payload successfully called users/save-user and received HTTP 200 with 'User saved', an admin-only capability. This means the practical consequence is full control-panel takeover (privilege escalation to admin), not merely a nuisance XSS. No EPSS data was provided, preventing quantitative exploitation probability assessment. No CISA KEV listing confirms active in-the-wild exploitation. The vendor advisory from VulnCheck and the GHSA source provide high-confidence impact characterization. The primary limiting factor is the requirement for a low-privilege control-panel account - this is not an unauthenticated attack path - but organizations with multiple content authors face elevated exposure.

Exploit ScenarioDerived

An author-level Craft CMS user creates an entry draft and names it with a JavaScript payload that reads Craft.csrfTokenValue from the page and POSTs it along with a new-user form body to the users/save-user endpoint. The next time an administrator browses an element index with drafts visible - or opens a relation field referencing the draft-carrying entry - the stored script fires silently in the administrator's browser, uses their live session credentials and CSRF token to create a new administrator account, and leaves no visible trace in the UI. The attacker then authenticates with the newly created account.

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

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

Alert me

AnalysisAIv1 – Aug 12, 2026

Stored XSS in Craft CMS's control panel allows a low-privilege author to execute arbitrary JavaScript in an administrator's authenticated session by injecting a malicious payload into a draft name, which is rendered without HTML encoding in element chips and cards. All Craft CMS installations running versions 5.0.0-RC1 through 5.10.8 (exclusive) are affected. An attacker who can create element drafts can harvest the administrator's CSRF token and issue privileged control-panel actions - including creating new administrator accounts - without the victim taking any action beyond routine browsing of element indexes or relation fields. No public exploit identified at time of analysis, though the vendor's GHSA advisory verified the account-creation impact end-to-end.

RemediationAI

Upgrade Craft CMS to version 5.10.8 or later via Composer: composer require craftcms/cms:^5.10.8. This is the vendor-released patch that introduces proper HTML encoding for the draftName field in the element chip/card rendering helper. The fix commit is https://github.com/craftcms/cms/commit/06c799148537ce960f6bc86e162b499947040eda and the advisory is at https://github.com/craftcms/cms/security/advisories/GHSA-2rp4-x2j7-qmcc. If immediate upgrade is not feasible, restrict control-panel accounts so that draft-creation permissions are granted only to explicitly trusted users - this removes the attacker's ability to store a payload, though it may constrain editorial workflows for organizations with contributor roles. Hiding drafts from element indexes for administrative users would reduce the exposure surface but would not eliminate it, since relation fields and element-selection fields also trigger the vulnerable rendering path.

Affected VersionsENISA

CMS 5.0.0-RC1 <5.10.8

Affected Packages

composer craftcms/cms fix: 5.10.8
euvd cms fix: 5.10.8

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

CWE-79 (Improper Neutralization of Input During Web Page Generation) describes the root cause: the server-side helper that renders element chips and cards writes the draftName field directly into HTML output without HTML entity encoding, despite correctly encoding surrounding path segments. Craft CMS is a PHP-based CMS distributed via Composer as craftcms/cms (CPE: cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:*). The vulnerable rendering path is triggered in element indexes when drafts are visible, in relation and element-selection fields that reference a draft-carrying element, and in the drafts list - all routine control-panel UI surfaces. Craft CMS embeds a CSRF token (Craft.csrfTokenValue) directly in control-panel page JavaScript, making it trivially readable by any in-origin script. This is the third reported output-encoding gap in Craft CMS 5.x: GHSA-xrqc-p465-2xvg addressed structure entry titles and GHSA-3x4w-mxpf-fhqq addressed revision context menus, establishing a pattern of incremental encoding fixes in user-controlled label fields.

Know when Cms gets its next vulnerability

  • 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 (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Stored XSS delivered over the network by a low-privilege user (PR:L, UI:R) with scope change into the victim's session enabling CSRF-based admin actions (S:C, C:L, I:L).

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Aug 12, 2026 - 20:03 EUVD

DescriptionCVE.org

Craft CMS versions before 5.10.8 contain a stored cross-site scripting vulnerability in the control panel where draft names are rendered without HTML encoding in element chips and cards. A low-privilege user who can create element drafts can inject malicious JavaScript that executes in the browser of any higher-privileged user viewing the affected element, allowing account creation and other authenticated actions.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
popular PHP CMS, strong SMB, agency, and media deployment base
Data Quality
6 sources
Confidence: High

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 No
EPSS 0.2%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
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.

More in Cms

View all
CVE-2020-7357 CRITICAL POC
9.9 Aug 06

Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c

CVE-2012-4405 MEDIUM
6.8 Sep 18

Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl

CVE-2021-47753 CRITICAL POC
9.8 Jan 15

phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po

CVE-2019-9874 CRITICAL POC
9.8 May 31

Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an

CVE-2026-123488 CRITICAL POC
9.3 Nov 06

Unauthenticated SQL injection in Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 allows remote attackers to read a

CVE-2019-9875 HIGH POC
8.8 May 31

Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex

CVE-2026-113358 HIGH POC
8.7 Oct 20

Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files

CVE-2026-56382 HIGH POC
8.6 Jun 21

Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P

CVE-2012-5894 HIGH POC
7.5 Nov 17

SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr

CVE-2012-5893 MEDIUM POC
6.8 Nov 17

Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e

CVE-2015-2083 MEDIUM POC
6.8 Feb 25

Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi

CVE-2012-5919 MEDIUM POC
4.3 Nov 19

Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit

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