CVE-2026-59167 SunEditor: Critical XSS vulnerability - sanitizer bypass
Attackers can execute arbitrary scripts in the victim's browser context via stored XSS by bypassing the editor's sanitizer, leading to data exposure or unauthorized actions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-59167?
CVE-2026-59167 is a critical cross-site scripting vulnerability in JiHong88 suneditor, published on 23 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-59167?
2 open source packages ship an affected version, including suneditor.
| Package | Affected | Fixed in |
|---|---|---|
suneditor npm | All versions | 2.47.11 |
suneditor npm | All versions | 2.47.11 |
How do I fix CVE-2026-59167?
Upgrade suneditor to 2.47.11 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-59167 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59167 exists.
Sources
Also known as GHSA-6rf4-v2fh-m6p4.