CVE-2026-59167: SunEditor: Critical XSS vulnerability - sanitizer bypass

Published Sep 23, 2026
·
Updated

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.

Affected Software

1 affected component
SunEditor SunEditor<2.47.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade SunEditor to a version that resolves this vulnerability.

    Fixed in 2.47.11

Event History

Sep 23, 2026
CVE Published
via MITRE·01:52 PM
Data Sourced
via MITRE·01:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using SunEditor versions before 2.47.11 are exposed if they render attacker-controlled editor content. The impact occurs in the browser origin of the application rendering that content.

2

What must an attacker do to exploit the vulnerability?

An attacker must cause crafted content containing namespaced or custom HTML elements with retained event-handler attributes to be stored or otherwise rendered by the application. A user must then interact with the crafted element for the handler to execute.

3

Are users affected merely by viewing malicious editor content?

The available information specifies that script execution occurs when a user interacts with the crafted element. It does not state that passive viewing alone triggers execution.

4

What version resolves the issue?

Upgrade SunEditor to version 2.47.11, which fixes the inconsistent sanitizer handling of namespaced and custom HTML elements.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203