Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege editor user
-
DeliveryStore HTML-encoded payload in h1-h6 header
-
ExploitVictim opens link modal and types #
-
ExecutionBookmark list innerHTML parses payload as HTML
-
ImpactExecute JavaScript and hijack victim session
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 two conditions, both confirmed by the advisory. First, the attacker needs low-privilege authenticated write access to editor content to store a payload inside an h1-h6 header (headers are in the default ELEMENT_WHITELIST, so no non-default configuration is needed). Second, a victim must perform the specific interaction of opening the link modal and typing '#' in the URL input to generate the internal-bookmark list, which is when the entity-decoded textContent is re-parsed via innerHTML. No special options are required - this works against default SunEditor configuration (vulnerable <=3.3.1). Limiting factors: exploitation is gated by the required authenticated content-authoring foothold (PR:L) and by the required victim action of opening the link modal and typing '#' (UI:P) - it does not fire on mere page load. |
| Impact | This is a credible, moderately high-priority stored XSS in a shared-editor context, but not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N, 8.3) tells a consistent story: network-reachable, low attack complexity, no special attack requirements, but it requires low-privilege authenticated access (PR:L) to store content AND passive victim interaction (UI:P) - the victim must open the link modal and type '#' in the URL field. These two gates (a foothold as a content author plus a specific victim action) meaningfully reduce real-world exploitability versus a zero-interaction, unauthenticated flaw, even though the scope-change impact (SC:H) reflects that code runs in a different user's browser. The vuln.today decision label is 'this_week', consistent with a patch-available, interaction-gated flaw rather than 'act_now'. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active exploitation; a detailed PoC recipe is published in the GitHub Security Advisory. The signals do not conflict - a high-but-not-critical CVSS, a 'this_week' label, an available fix, and a published PoC together indicate a real issue warranting prompt patching, driven more by the low technical barrier than by evidence of widespread exploitation. |
| Exploit ScenarioDerived | In a multi-user application embedding SunEditor (e.g. a CMS or ticketing system), a low-privilege authenticated user saves a document whose h1-h6 header contains HTML-encoded text such as '<img src=x onerror=alert(document.domain)>'. When a higher-privileged victim later edits that content, opens the link modal, and types '#' in the URL input to create an internal bookmark, the stored text is re-parsed as HTML and the JavaScript executes in the victim's session. A full step-by-step PoC (including payload and trigger) is published in the GHSA advisory, so the trigger path is well documented; the input does not label it as confirmed 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 (npm suneditor) through 3.3.1 lets a low-privilege author plant an HTML-encoded payload inside an h1-h6 header, which is later re-parsed as HTML when a victim opens the link modal and types '#' in the URL field to build the internal-bookmark list. Only default configuration is required, since headers are part of the default ELEMENT_WHITELIST and the bookmark list is part of the stock link modal, but exploitation is gated by two conditions: an authenticated content-authoring foothold (PR:L) and the victim performing that specific modal interaction (UI:P) - the payload does not fire on page load. Successful execution runs JavaScript in the victim's session context, enabling cookie/session theft and actions performed as the victim; there is no CISA KEV entry and no confirmed working exploit code, though the vendor advisory publishes a step-by-step proof-of-concept recipe, and the priority label is 'this_week' rather than emergency.
RemediationAI
Vendor-released patch: upgrade SunEditor to 3.4.0 or later, which is the fixed version named in the vendor advisory and in the EUVD-affected-version range; the package entry confirms vulnerable <=v3.3.1, fixed in 3.4.0. Upgrade instructions and the vulnerability write-up are at https://github.com/JiHong88/suneditor/security/advisories/GHSA-5pp5-5qrp-vq56, with a parallel advisory at https://www.vulncheck.com/advisories/suneditor-before-3.4.0-stored-xss-via-link-modal-bookmark-list; where the library is loaded from a CDN, pin the 3.4.0 build and update any bundled/vendored suneditor.min.js. The supplied sources document no standalone code-level workaround, so remediation centers on the version bump; until it can be applied, exposure tracks the two confirmed prerequisites - the attacker needs write access to editor content to plant the header payload, and the payload only executes when someone opens the link modal and types '#' in the URL input, so restricting which accounts can author rich content and avoiding untrusted shared documents reduces - but does not eliminate - the attack surface.
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 dependency-free vanilla JavaScript WYSIWYG editor, and the flaw is a classic CWE-79 sanitizer-bypass pattern rather than a flaw in the sanitizer itself. html.clean() behaves correctly: it strips dangerous elements and attributes while preserving text nodes, so a header containing <img src=x onerror=...> survives as an encoded text node. The problem is ModalAnchorEditor.#createBookmarkList (src/src/modules/ui/ModalAnchorEditor.js:339-367), which collects h1-h6 (and anchored) elements from the wysiwyg frame and reads each one's textContent - the browser's entity-decoded plain text. That decoded string is concatenated into an HTML template (<div style="...">${v.textContent}</div>) and handed to SelectMenu.create(list, menus), which builds <li> markup and assigns it through #listInner.innerHTML (SelectMenu.js:530 in #createFormat). The browser then parses what was plain text as markup, materializing real elements with event handlers such as onerror. In other words, sanitized text is re-interpreted as HTML at a second sink, defeating the earlier sanitization. The path is reached on a routine user action: typing '#' in the link modal URL input triggers #OnChange_urlInput → #setLinkPreview → #selfPathBookmark → #createBookmarkList. The trigger, the affected module and the exact injection lines are all spelled out in the GHSA-5pp5-5qrp-vq56 advisory; the CVSS 3.1 assessment puts it at AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (scope change, limited confidentiality impact), so the practical blast radius is the victim's editor session rather than the server.
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:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Low-privilege authenticated user stores the payload (PR:L); victim must open the modal and type '#' (UI:R); XSS runs in another user's browser context (S:C) with low confidentiality/integrity impact, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in ModalAnchorEditor's #createBookmarkList, which inserts entity-decoded h1-h6 header textContent into the bookmark list via innerHTML without escaping. Attackers can store HTML-encoded payloads in editor headers that execute JavaScript when a victim opens the link modal and types
in the URL input.
Technical POC Analysis
CWE-79 stored XSS, DOM sink.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A stored cross-site scripting flaw (CVE-2026-124492) in the SunEditor rich-text component, used in our content-authoring interfaces, could let a low-privilege contributor plant malicious script that executes in another user's session when that user performs a specific action in the link dialog. Leadership should care because a compromise could expose authenticated sessions and enable actions masquerading as trusted staff, though exploitation requires both an authoring account and deliberate victim interaction rather than firing automatically.
Vendor-released patch: apply the fixed SunEditor version referenced in the vendor advisory; until patched, limit content-authoring privileges to trusted users and warn authors against entering '#' in the link modal URL field.
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 the SunEditor WYSIWYG library (versions 3.0.0 up to, but not including, 3.4.0) allows cra
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-119547
GHSA-h8r9-r2r8-gxj7
NVD
CVE.org
EPSS
Exploit-DB