Description
SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript with no dependencies. Prior to 2.47.11, the sanitizer in src/lib/core.js does not consistently reject namespaced or custom HTML elements, allowing event-handler attributes to remain on crafted elements. When an application renders attacker-controlled editor content and a user interacts with the element, the retained handler can execute script in the application's browser origin, enabling stored cross-site scripting, data exposure, or unauthorized browser-context actions. This issue is fixed in version 2.47.11.
Published: 2026-09-23
Score: 10 Critical
EPSS: n/a
KEV: No
Impact: Stored cross‑site scripting
Action: Immediate Patch
AI Analysis

Impact

The sanitizer in SunEditor does not reject namespaced or custom HTML elements, so event‑handler attributes survive on crafted elements. When an application renders attacker‑controlled editor content, a user interaction triggers the retained handler and executes arbitrary script in the page’s browser origin. This allows an attacker to read or modify data, inject malicious content, or perform unauthorized actions within the application context, causing significant confidentiality, integrity, and availability impact.

Affected Systems

This flaw affects the SunEditor library supplied by JiHong88. All releases prior to version 2.47.11 are vulnerable. Applications that embed these older editor versions and trust user‑generated content are at risk.

Risk and Exploitability

The product has a CVSS score of 10, indicating maximum severity. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. Attack requires that the application render compromised editor content and that an end‑user interact with the malicious element. Because the flaw is a stored XSS that executes in the victim’s browser session, it can be amplified by social engineering or malicious user uploads. The risk is high, especially for user‑facing applications or content management systems that rely on SunEditor.

Generated by OpenCVE AI on September 23, 2026 at 15:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SunEditor to version 2.47.11 or later where the sanitizer correctly rejects custom elements.
  • If an upgrade is not immediately possible, run a strict sanitization routine or a whitelist that blocks all custom and namespaced elements and removes event‑handler attributes before rendering content.
  • Audit the application to ensure no user‑provided content is rendered unfiltered in the editor. Consider disabling editor content editing or restricting to trusted users until the fix is applied.

Generated by OpenCVE AI on September 23, 2026 at 15:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 23 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Jihong88
Jihong88 suneditor
Vendors & Products Jihong88
Jihong88 suneditor

Wed, 23 Sep 2026 14:00:00 +0000

Type Values Removed Values Added
Description SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript with no dependencies. Prior to 2.47.11, the sanitizer in src/lib/core.js does not consistently reject namespaced or custom HTML elements, allowing event-handler attributes to remain on crafted elements. When an application renders attacker-controlled editor content and a user interacts with the element, the retained handler can execute script in the application's browser origin, enabling stored cross-site scripting, data exposure, or unauthorized browser-context actions. This issue is fixed in version 2.47.11.
Title SunEditor: Critical XSS vulnerability - sanitizer bypass
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Jihong88 Suneditor
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-23T13:52:56.747Z

Reserved: 2026-07-02T16:50:27.887Z

Link: CVE-2026-59167

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-23T14:17:07.923

Modified: 2026-09-23T14:17:07.923

Link: CVE-2026-59167

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T16:15:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')