SunEditor: Critical XSS vulnerability - sanitizer bypass
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| JiHong88 | suneditor | before 2.47.11 | 2.47.11 | Patch available | CNA |
| — | suneditor (npm) | before 2.47.11 | 2.47.11 | Patch available | GHSA-6rf4-v2fh-m6p4 |
- suneditor VendorJiHong88 Affected before 2.47.11 Fixed in 2.47.11 Patch available CNA
- suneditor (npm) Vendor— Affected before 2.47.11 Fixed in 2.47.11 Patch available GHSA-6rf4-v2fh-m6p4
Remediation
- Fix · CNA suneditor (JiHong88) Fixed in 2.47.11
- Fix · GHSA-6rf4-v2fh-m6p4 suneditor (npm) Fixed in 2.47.11 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-59167
- 2026-10-03 Alias added: GHSA-6rf4-v2fh-m6p4
References
Other 5
- https://github.com/JiHong88/suneditor/security/advisories/GHSA-6rf4-v2fh-m6p4
- https://github.com/JiHong88/suneditor/issues/1646
- https://github.com/JiHong88/suneditor/commit/a94ace269c7102bfb6de58a27a6547bc4eb09045
- https://github.com/JiHong88/suneditor/releases/tag/2.47.11
- https://github.com/JiHong88/suneditor
More JiHong88 vulnerabilities
- TI-2026-39439 SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed CVSS 4.0HIGH 8.5
- TI-2026-86759 Stored cross-site scripting in SunEditor via html.clean() CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-59167 · CVE Program
- CVE-2026-59167 · NVD
- FIRST EPSS
- GHSA-6rf4-v2fh-m6p4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences