Skip to main content

SunEditor CVE-2026-124493

| EUVDEUVD-2026-119548 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-pxmj-79fq-gv83
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Store entity-encoded HTML in h1-h6 header
  2. Delivery
    Victim loads editor in document:header mode
  3. Exploit
    Constructor injects textContent into innerHTML
  4. Execution
    Browser parses markup and fires onerror handler
  5. Impact
    Steal session cookies via document.cookie

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 editor must be instantiated with type:'document:header' or type:'document:header,page' - a legitimate but non-default mode; in default configurations the vulnerable DocumentType constructor path is not reached. The attacker must be able to persist entity-encoded HTML inside an h1-h6 header element of stored editor content, and a victim must subsequently load/initialize an editor over that content (UI:P), at which point the payload executes during constructor initialization with no further interaction. Limiting factors: the non-default document-header configuration, the requirement that the attacker's content be stored and later rendered to a victim, and the specific version range (<3.4.0, confirmed vulnerable at <=3.3.1). The companion reHeader() update path uses safe textContent assignment and is not affected.

Impact

Signals converge toward genuine priority rather than a paper-high score. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/SC:H/SI:H) yields 9.3 and reflects network reach, low complexity, and no attacker privileges, with a scope change into the victim's browser session; the vuln.today Decision label is act_now. However, two moderating factors must be weighed against that number. First, exploitation is gated on a non-default configuration - the editor must run in type:'document:header' (or 'document:header,page') mode - so the vulnerable population is a subset of all SunEditor deployments, not every install. Second, UI:P (passive interaction) means a victim must load/initialize an editor instance containing the poisoned header; it fires automatically on init, but an editor must actually be opened. No EPSS score was provided and the CVE is not listed in CISA KEV, so there is no evidence of widespread or automated exploitation - treat the act_now label as reflecting severity and PoC maturity, not confirmed mass exploitation. The CVSS network/no-privilege framing also deserves a caveat: storing malicious header content presupposes the attacker can submit content that other users later render, which in many real deployments implies at least a low-privilege content-contributor role even though the vector encodes PR:N - verify the trust boundary for your specific integration.

Exploit ScenarioDerived

An attacker submits document content containing an h1-h6 header whose text is entity-encoded HTML such as &lt;img src=x onerror=alert(document.cookie)&gt;. When another user opens a page that initializes SunEditor in document:header mode with that stored content, the DocumentType constructor reads the header's decoded textContent and assigns it via innerHTML, causing the browser to build a live <img> element whose onerror handler executes attacker JavaScript. A detailed proof-of-concept demonstrating exactly this flow is published in the vendor GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 08, 2026

Stored cross-site scripting in SunEditor before 3.4.0 lets an attacker who can persist content inside an h1-h6 header run arbitrary JavaScript in the browser of anyone who initializes an editor configured with type: 'document:header' (or 'document:header,page'), enabling session cookie theft and actions taken as the victim. The flaw sits only in the non-default document-header mode and requires the victim to load an editor over the stored content; default configurations never reach the vulnerable constructor, and the reHeader() update path uses safe textContent assignment. A PoC recipe is included in the upstream GHSA advisory; no confirmed active exploitation (CISA KEV) was reported at time of analysis, though the upstream priority signal is act_now.

RemediationAI

Upgrade to SunEditor 3.4.0, the vendor-released fixed version confirmed in the GHSA advisory; the patch is available from the vendor and resolves the constructor's injection of header textContent into innerHTML. If the upgrade cannot be applied immediately, remove or disable the type: 'document:header' and 'document:header,page' configuration options so the vulnerable DocumentType constructor is never initialized - the trade-off is loss of the document header navigation panel, while default editor configurations do not reach the vulnerable code path in the first place. Do not treat html.clean() or pre-escaping stored input as a substitute fix, because the flaw re-interprets already-decoded textContent as HTML after sanitization; the reHeader() runtime update path is unaffected and offers no exposure. Because the library is frequently loaded from CDNs, confirm that the deployed bundle is actually 3.4.0 or later, and review the vendor advisory at https://github.com/JiHong88/suneditor/security/advisories/GHSA-h9pq-57qf-vvfh.

Affected VersionsENISA

suneditor 0 <3.4.0

Affected Packages

euvd suneditor fix: 3.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

SunEditor is a vanilla JavaScript WYSIWYG rich-text editor shipped as the npm package suneditor (CPE cpe:2.3:a:jihong88:suneditor). The defect is a CWE-79 cross-site scripting caused by sanitizer bypass through re-interpretation: the DocumentType constructor (src/src/core/section/documentType.js, lines 82-94) collects h1-h6 elements from the editing area and reads their textContent, which returns entity-decoded plain text, so a header stored as &lt;img src=x onerror=...&gt; yields the literal string <img src=x onerror=...>. That string is concatenated into an HTML template and assigned to inner.innerHTML, causing the browser to parse it as markup and instantiate real elements carrying event handlers. The html.clean() sanitizer behaves correctly on the stored markup; the flaw is that the constructor later re-interprets sanitized, decoded text as HTML, bypassing that protection. Only constructor-time initialization is affected, while reHeader() assigns textContent and is not vulnerable. The advisory carries a CVSS 4.0 base score of 9.3 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N); our independent assessment records CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N with the same prerequisite of the non-default document-header mode.

Know when Suneditor 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 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
vuln.today AI 9.3 CRITICAL

Stored XSS reachable over the network with no attacker privileges but requiring a victim to load the editor (UI:R); execution in the victim's browser is a scope change (S:C), and session-cookie theft plus proxied actions justify C:H/I:H with no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Nov 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:16 cve.org
CRITICAL 9.3

DescriptionCVE.org

SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in the DocumentType constructor that injects header textContent into innerHTML without HTML escaping. Attackers can store entity-encoded HTML in h1-h6 headers that executes JavaScript when editors using document:header mode initialize, enabling session cookie theft.

Technical POC Analysis

CWE-79: Improper Neutralization of Input During Web Page Generation.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical stored cross-site scripting vulnerability in SunEditor, an open-source rich text editor, affects only deployments using the non-default document-header mode. Successful exploitation could allow an attacker to hijack authenticated sessions and perform actions as a victim within the editor context, but the risk is limited to specific configurations and there is no evidence of active exploitation.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
popular open-source JS WYSIWYG editor, but header mode is niche feature
Social Media
2
Sightings
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

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

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