Skip to main content

CVE-2026-33051

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-18 https://github.com/craftcms/cms GHSA-3x4w-mxpf-fhqq
5.4
CVSS 3.1 · GitHub Advisory
View

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.

Impact

While CVSS and EPSS scores are not provided, the real-world risk is substantial and clearly present. The attack requires two conditions: (1) a low-privileged authenticated user must set their fullName to an XSS payload via the profile editor, and (2) an administrator must be logged in and view the revision context menu while the elevated session is active. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), which is consistently high-impact. The attack vector is network-based, requires authentication, and has low complexity—making it a realistic threat in environments where administrators regularly review revisions. The privilege escalation impact (attacker moving from Author to Administrator) significantly amplifies risk. No KEV designation or public POC is noted in the provided intelligence, but vendor patch availability and rapid release of version 5.9.11 suggest the vendor considered this sufficiently critical for immediate remediation.

Exploit ScenarioDerived

An attacker with Author-level access to a Craft CMS control panel modifies their profile fullName field to contain a malicious JavaScript payload (e.g., a script that changes their user role to Administrator when executed in an admin's browser context). The attacker then creates and saves an entry twice to trigger the revision/draft context menu. When an administrator views the revision history, the XSS payload in the creator's fullName executes in the admin's browser session with the admin's elevated privileges, allowing the attacker to modify their own user record to grant administrator access. No public POC has been identified in the provided intelligence, but the straightforward attack chain (profile edit → revision creation → admin viewing) suggests exploitation complexity is low for authenticated attackers.

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

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

Alert me

AnalysisAIv1 – Mar 18, 2026

This vulnerability is a stored cross-site scripting (XSS) flaw in Craft CMS's element editor revision/draft context menu that renders user-supplied fullName data as raw HTML without proper sanitization. A low-privileged control panel user (such as an Author) can inject malicious JavaScript into their profile's fullName field, which executes when an administrator views the revision context menu. If weaponized with a carefully crafted payload while an administrator is authenticated, an attacker can escalate their account privileges to administrator level. A patch is available in Craft CMS version 5.9.11.

RemediationAI

Immediately upgrade Craft CMS to version 5.9.11 or later via Composer (composer update craftcms/cms). The patch has been committed to the vendor repository (commit f634a9d21edcafd83a6716047d275f985aba6be1) and is available in the official release. Until patching can be completed, restrict control panel access to trusted administrators only, disable profile editing for low-privileged users if possible, and review fullName fields in the database for any suspicious content. Additionally, consider implementing Content Security Policy (CSP) headers to mitigate the impact of any injected scripts. Refer to the official advisory at https://github.com/craftcms/cms/security/advisories/GHSA-3x4w-mxpf-fhqq for comprehensive patching details.

Affected Packages

composer craftcms/cms fix: 5.9.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability stems from improper output encoding in Craft CMS (CPE: pkg:composer/craftcms/cms) where the Template::raw() function is combined with Craft::t() string interpolation without HTML escaping the fullName variable. This violates CWE-79 (Improper Neutralization of Input During Web Page Generation) because user-controlled data from the profile editor is rendered directly into HTML context without sanitization. The affected code path involves the revision/draft context menu in the element editor, which retrieves the creator's fullName and renders it as raw HTML markup rather than escaped text, allowing arbitrary HTML and JavaScript injection.

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

GitHub Advisory PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch released
Mar 18, 2026 - 13:15 nvd
Patch available
CVE Published
Mar 18, 2026 - 12:58 nvd
MEDIUM 5.4

DescriptionGitHub Advisory

The revision/draft context menu in the element editor renders the creator’s fullName as raw HTML due to the use of Template::raw() combined with Craft::t() string interpolation. A low-privileged control panel user (e.g., Author) can set their fullName to an XSS payload via the profile editor, then create an entry with two saves.

If an administrator is logged in and executes a specifically crafted payload while an elevated session is active, the attacker’s account can be elevated to administrator.

Users should update to Craft 5.9.11 with the patch to mitigate the issue.

Executive ViewAI

Why It Matters

CVE-2026-33051 presents moderate security risk, a cross-site scripting vulnerability rated CVSS 5.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
5 sources
Confidence: Medium

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.0%
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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

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

Affected Products (CPE)GitHub Advisory

pkg:composer/craftcms_cms

Related Vulnerabilities in Craft CMS Stored XSS Vulnerabilities

View all 2

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