Skip to main content

SunEditor CVE-2026-124491

| EUVDEUVD-2026-119546 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-m98v-phcq-735w
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate and access file upload
  2. Delivery
    Upload file with HTML payload name
  3. Exploit
    Server echoes filename in response
  4. Install
    create() assigns name to innerHTML sink
  5. C2
    Malicious node inserted, bypasses html.clean
  6. Execute
    Victim loads content or gallery
  7. Impact
    Script 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.

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 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

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 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

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.4 MEDIUM

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.

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

Lifecycle Timeline

1
Patch available
Nov 08, 2026 - 14:01 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular open-source JS WYSIWYG editor library, moderate npm/web-app adoption
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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