Skip to main content

SunEditor EUVDEUVD-2026-119376

| CVE-2026-124422 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-fvm2-c629-pcjf
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft HTML with data-se-iframe-holder-attrs srcdoc payload
  2. Delivery
    Deliver via paste or html.insert/set
  3. Exploit
    Bypass html.clean() srcdoc filter gap
  4. Execution
    Rebuild iframe with attacker srcdoc
  5. Persist
    svg/onload runs script in host origin
  6. Impact
    Steal cookies / act as victim

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

Requires that attacker-controlled HTML reaches SunEditor's html.clean() sanitizer in an affected version (3.0.0 before 3.4.0), via one of three concrete paths: a victim pasting crafted content into the editor (this path requires user interaction), or the host application passing untrusted content to the html.insert or html.set API (no user interaction on this path). The payload must mimic the editor's own iframe-placeholder format - a data-se-iframe-holder-attrs attribute carrying a double-quoted (entity-encoded "/>) JSON object with a srcdoc key - because the placeholder-rebuild loop only rejects on* handlers and unsafe src protocols, never srcdoc. Limiting factors: the paste vector depends on a victim pasting attacker content, and the API vector depends on the host app feeding unsanitized user input into html.insert/set; default editor configuration is sufficient (no special option needed). Documented mitigations until patching: strip data-se-iframe-holder / data-se-iframe-holder-attrs attributes in a host-side onPaste hook, never pass untrusted content to html.insert without cleaning, and apply a frame-src CSP (which blocks exfiltration but not script execution itself); the complete fix is upgrading to 3.4.0.

Impact

This is a stored/DOM XSS (CWE-79) in the SunEditor WYSIWYG library with a moderate CVSS 4.0 base score of 5.3. The supplied 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N) describes network-delivered, low-complexity, unauthenticated (PR:N) exploitation that is passive-user-interaction dependent (UI:P) with limited confidentiality and integrity impact on both the vulnerable and a subsequent system - consistent with script executing in the host page origin. A verified proof-of-concept exists: the GHSA advisory includes a working payload that the reporter (VulnCheck) dynamically confirmed in headless Chromium on 2026-08-28, with the injected onload handler executing in the host origin across all three entry paths (html.set, html.insert, and paste). This is not KEV-listed and no EPSS score was provided, so there is no evidence of active in-the-wild exploitation; the priority signal is 'this_month', not emergency. Net: a real, confirmed-exploitable client-side XSS with public verified PoC, but bounded real-world risk because impact is limited (VC/VI:L) and the paste path requires user interaction. CONFLICT TO NOTE: the GHSA advisory text states 'No version currently ships a fix,' yet the CVE description, the npm metadata (fixed in 3.4.0), the linked commit 57db24a, and the 3.4.0 release tag all indicate a patch now exists - the advisory was evidently written before 3.4.0 shipped; treat 3.4.0 as the fixed version and verify against the vendor release.

Exploit ScenarioDerived

An attacker crafts HTML containing a SunEditor iframe-placeholder (a span with data-se-iframe-holder-attrs encoding a JSON srcdoc payload such as a <svg/onload=...> handler). A victim pastes this content into an editor built on SunEditor 3.0.0-3.3.x, or a host application routes attacker-supplied content through html.set/html.insert; html.clean() rebuilds the iframe and preserves the unfiltered srcdoc, so the inline document's script runs in the host page's origin, enabling cookie theft or actions as the victim. A verified PoC published in the GHSA advisory was confirmed executing in real Chromium across paste, html.set, and html.insert.

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 – Nov 08, 2026

Stored cross-site scripting in the SunEditor WYSIWYG library (versions 3.0.0 up to, but not including, 3.4.0) allows crafted HTML to survive the html.clean() sanitizer and execute script in the embedding host page's origin. The flaw is unauthenticated from the attacker's side (CVSS 4.0 PR:N) but requires that attacker content reach the editor - either a victim pasting it (UI:P) or the host application routing untrusted input through the $.html.set or $.html.insert APIs. The advisory documents a dynamically verified Chromium reproduction for all three entry paths; there is no CISA KEV listing and no confirmed active exploitation, EPSS data was not supplied, the vendor released a fix in 3.4.0, and the vulnerability is rated 'this_month' priority.

RemediationAI

Vendor-released patch: upgrade SunEditor to 3.4.0, the fixed version listed for the npm package suneditor (vulnerable <= 3.3.1), per https://github.com/JiHong88/suneditor/releases/tag/3.4.0 and the fix commit referenced at https://github.com/JiHong88/suneditor/commit/57db24ac218cd10942fed0bb8288e9cb40b334bb. If upgrading is not immediately possible, the advisory's documented workarounds are: strip the data-se-iframe-holder and data-se-iframe-holder-attrs attributes in a host-side onPaste hook so crafted placeholder markup never reaches the sanitizer (this does not help if the host itself feeds untrusted data to the API path), and never pass untrusted content to editor.$.html.insert or editor.$.html.set without cleaning it first (the API paths are the ones that need no victim interaction, so they carry the larger exposure). A CSP that restricts frame-src to a whitelist limits the external exfiltration channel but does not stop the injected script from executing, so it is a partial control only; the complete fix is the 3.4.0 upgrade.

Affected VersionsENISA

suneditor 3.0.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 round-trips embedded iframes through an HTML placeholder: a <span data-se-iframe-holder="1" data-se-iframe-holder-attrs="..."> node carries a JSON object of iframe attributes which the sanitizer later rebuilds into a real <iframe> in src/core/logic/dom/html.js. Two design choices combine badly (CWE-79): every data-se-* attribute passes the attribute whitelist unconditionally via REQUIRED_DATA_ATTRS, and the placeholder re-creation loop only rejects keys matching /^on/i and unsafe src protocols, so a srcdoc key is copied straight onto the rebuilt iframe with setAttribute. A srcdoc iframe hosts a same-origin inline document, so markup such as <svg/onload=...> in the srcdoc value executes with the host page's origin and can read cookies, deface the page or act as the victim. The advisory's taint analysis shows the payload also slips past the on-handler regex because 'onload' is preceded by '/' rather than whitespace, and the payload must be double-quoted with &quot;/&gt; entities to survive the attribute regex. Affected CPE is cpe:2.3:a:jihong88:suneditor (npm package suneditor, vulnerable <= 3.3.1).

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 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Attacker-supplied content delivered over the network with low complexity and no privileges; the paste path needs victim interaction (UI:R), and script running in the host origin crosses the editor's security authority (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/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
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

SunEditor from 3.0.0 before 3.4.0 contains a stored cross-site scripting vulnerability in html.clean() that rebuilds iframes from data-se-iframe-holder-attrs JSON without filtering srcdoc or uppercase SRC keys. Attackers can inject crafted HTML through paste, html.set, or html.insert to execute script in the host page origin when victims load or paste the content.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
popular open-source JavaScript WYSIWYG editor embedded in many web apps
Social Media
1
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 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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

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.

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