Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTML with data-se-iframe-holder-attrs srcdoc payload
-
DeliveryDeliver via paste or html.insert/set
-
ExploitBypass html.clean() srcdoc filter gap
-
ExecutionRebuild iframe with attacker srcdoc
-
Persistsvg/onload runs script in host origin
-
ImpactSteal 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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 "/> 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Stored cross-site scripting in SunEditor prior to 2.47.11 allows an attacker-supplied editor payload to survive the libr
Stored cross-site scripting in SunEditor through 3.3.1 allows an attacker to bypass the html.clean() URL sanitizer by en
Stored cross-site scripting in SunEditor before 3.4.0 lets an attacker who can persist content inside an h1-h6 header ru
Stored cross-site scripting in SunEditor (npm `suneditor`) through 3.3.1 lets a low-privilege author plant an HTML-encod
Stored cross-site scripting in SunEditor's FileUpload plugin lets an authenticated user who can upload files inject HTML
Stored cross-site scripting in the SunEditor WYSIWYG editor's codeBlock plugin (versions 3.0.0 through 3.4.2) lets an at
EUVD-2026-119376
GHSA-fvm2-c629-pcjf
NVD
CVE.org
EPSS
Exploit-DB