Skip to main content

SunEditor EUVDEUVD-2026-119547

| CVE-2026-124492 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-h8r9-r2r8-gxj7
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privilege editor user
  2. Delivery
    Store HTML-encoded payload in h1-h6 header
  3. Exploit
    Victim opens link modal and types #
  4. Execution
    Bookmark list innerHTML parses payload as HTML
  5. Impact
    Execute 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 '&lt;img src=x onerror=alert(document.domain)&gt;'. 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 (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

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 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 &lt;img src=x onerror=...&gt; 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

Vendor (VulnCheck) PRIMARY 8.3 HIGH
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
vuln.today AI 5.4 MEDIUM

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.

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

Lifecycle Timeline

2
Patch available
Nov 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:16 cve.org
HIGH 8.3

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular open-source JS WYSIWYG editor library, moderate npm deployment footprint
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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