Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate and access file upload
-
DeliveryUpload file with HTML payload name
-
ExploitServer echoes filename in response
-
Installcreate() assigns name to innerHTML sink
-
C2Malicious node inserted, bypasses html.clean
-
ExecuteVictim loads content or gallery
-
ImpactScript executes, session cookies stolen
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: (1) the hosting application to have configured SunEditor's FileUpload plugin with an uploadUrl (described as normal/default usage, no security option changes needed); (2) an attacker who is an authenticated end user able to perform a file upload (PR:L); and (3) the upload server to echo the attacker's original filename back in its JSON response (file.name), or persist it as the gallery data-name attribute - if the server sanitizes, normalizes, or regenerates filenames, the sink is never reached. The stored payload fires in a victim's browser only when that victim subsequently loads the editor content or selects the attacker's file from the file gallery, so cross-user impact depends on another user viewing the attacker-controlled content. These factors (authenticated upload capability plus server-side filename echoing) materially limit exploitation below what the network-vector score alone suggests. |
| Impact | This is a moderate-severity stored XSS (CWE-79) with a CVSS 4.0 base score of 5.3, and the supplied vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N) is internally consistent with the mechanism: network-reachable, low attacker privileges (PR:L - the attacker must be a user able to submit a file upload), limited confidentiality/integrity impact, and a subsequent-system impact (SC:L/SI:L) that reflects code executing in another user's browser context. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active or automatable mass exploitation; the vuln.today Decision label is 'this_month' (not act_now/emergency), which aligns with a real-but-not-urgent priority. The GHSA advisory includes a detailed PoC recipe (API call sequence and payload), so a public PoC reference exists; it is not verified as working exploit code. A key real-world qualifier not captured by the CVSS vector: exploitation depends on the hosting server echoing the attacker-supplied original filename back in its upload response (and/or storing it in the gallery listing) - deployments that normalize or regenerate filenames server-side are not exploitable. Overall this is a legitimate issue to patch but not a drop-everything emergency: authenticated attacker, limited impact, no KEV/EPSS pressure, server-side filename handling as a mitigating variable. |
| Exploit ScenarioDerived | An authenticated user of an application embedding SunEditor's FileUpload plugin uploads a file named like '<img src=x onerror=alert(document.cookie)>.pdf'; if the server echoes that original filename back, SunEditor assigns it to el.innerHTML when building the download link, so the payload executes immediately and persists in the saved content. When another user later opens that content or selects the file from the gallery, the stored script runs in their browser and can steal session cookies or tokens. A public PoC reference (server-response payload and API call recipe) exists in the GHSA advisory but is not verified as working exploit code. |
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 SunEditor's FileUpload plugin lets an authenticated user who can upload files inject HTML into editor content when the upload server echoes the original filename back and the library writes it into an anchor element via innerHTML. The flaw exists in SunEditor versions before 3.4.0 (the advisory documents 3.3.1), where component insertion uses a DOM node insert that bypasses the html.clean() sanitizer, so the payload persists in saved content and fires in another user's browser when that content or a gallery item is later loaded. Exploitation is conditional: the hosting application must configure the plugin with an uploadUrl (normal usage) and the server must return the attacker's filename unmodified - if it sanitizes or regenerates names the sink is never reached; a public PoC reference exists, but it is not verified as working exploit code, and there is no CISA KEV entry indicating active exploitation.
RemediationAI
Vendor-released patch: upgrade SunEditor to 3.4.0, which is the exact fixed version listed in GHSA-2w4v-r3v4-f5h4 and the EUVD affected-range record (0 < 3.4.0); patch availability is confirmed by the vendor. Because the vulnerable sink is only reached when the upload server returns the attacker's original filename unmodified, applications that cannot upgrade immediately can break the exploit chain at the server: regenerate or normalize uploaded filenames (for example UUID-based names) and never echo the client-supplied name back in the upload JSON response's name field or in the file-listing data-name attribute used by the gallery view - the trade-off is that user-visible download names change and existing stored filenames may need migration. Restricting or disabling the FileUpload plugin's uploadUrl configuration removes the attack path entirely but also removes the file-upload feature from the editor. These are compensating measures only; the library-side fix in 3.4.0 is the complete remediation. Per the reference advisory: https://github.com/JiHong88/suneditor/security/advisories/GHSA-2w4v-r3v4-f5h4.
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 is a vanilla JavaScript WYSIWYG rich-text editor distributed as the npm package suneditor (CPE cpe:2.3:a:jihong88:suneditor). The root cause is CWE-79 improper neutralization of input during web page generation: in src/helper/dom/domUtils.js the helper createElement(el, attributes, inner) assigns el.innerHTML = inner whenever inner is a string, with no HTML escaping. The FileUpload plugin's create(url, file, isLast) method computes name = file.name || url and passes it as that inner argument, so any HTML in the server-returned filename is parsed into live DOM nodes - the advisory's example, an <img src=x onerror=...> filename, fires as soon as the broken image load fails. The created anchor is then inserted with component.insert(a) which calls html.insertNode(element); because this is a direct node insertion rather than a content-parsing path, it skips the library's html.clean() central sanitizer. A second path exists in fileGallery.js #SetItem(), which feeds the data-name attribute from server file-listing data into the same create() call, so a stored malicious filename fires when a victim opens the gallery and selects the attacker's file. The assessed CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) matches this mechanism: the attacker needs only a normal user's file-upload capability, and impact lands both in the editor page and in other users' browser contexts.
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:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
PR:L because the attacker must be an authenticated user able to upload; S:C because injected script executes in other users' browser context; C:L/I:L for session/content theft, A:N as availability is unaffected.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in the FileUpload plugin create() method that assigns server-returned file names to innerHTML without escaping. Attackers can upload files with HTML-laden names that bypass html.clean() and execute JavaScript in victims' browsers when content or gallery items load, enabling session theft.
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 the SunEditor WYSIWYG library (versions 3.0.0 up to, but not including, 3.4.0) allows cra
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-119546
GHSA-m98v-phcq-735w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB