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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-23T13:52:56.747Z
- Modified: 2026-09-24T15:17:25.303Z
- Also known as: GHSA-6rf4-v2fh-m6p4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- JiHong88 suneditor: < 2.47.11
- suneditor (npm): before 2.47.11

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/JiHong88/suneditor/security/advisories/GHSA-6rf4-v2fh-m6p4> (exploit, web)
- <https://github.com/JiHong88/suneditor/issues/1646> (web)
- <https://github.com/JiHong88/suneditor/commit/a94ace269c7102bfb6de58a27a6547bc4eb09045> (web)
- <https://github.com/JiHong88/suneditor/releases/tag/2.47.11> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59167> (advisory)
- <https://github.com/JiHong88/suneditor> (package)

## Sources

- CVE List: [CVE-2026-59167](https://www.cve.org/CVERecord?id=CVE-2026-59167), CVE Terms of Use, modified 2026-09-24
- GitHub Advisory Database: [GHSA-6rf4-v2fh-m6p4](https://github.com/advisories/GHSA-6rf4-v2fh-m6p4), CC-BY-4.0, modified 2026-09-24
- NVD: [CVE-2026-59167](https://nvd.nist.gov/vuln/detail/CVE-2026-59167), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-59167 · Whole record: https://cve.day/CVE-2026-59167.json · Rebuilt by cve.day 2026-11-25T22:59:40.619Z
