Skip to main content
← All vulnerabilities
CVE-2026-59167GHSA-6RF4-V2FH-M6P4

SunEditor: Critical XSS vulnerability - sanitizer bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.47.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • JiHong88 suneditor

    fixed in 2.47.11

  • suneditornpm

    fixed in 2.47.11

References 4

GitHub · JiHong88/suneditor