CVE-2026-59167JiHong88 suneditor
Stored cross-site scripting in SunEditor due to insufficient sanitization
Critical 10.0 No auth needed
Follow: this CVE · JiHong88 · JiHong88 suneditor We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 10.0
- EPSS
- —
- Auth required
- No
- Published
- Sep 23, 2026
- Updated
- Sep 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
SunEditor prior to version 2.47.11 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, the retained handler can execute script in the application's browser origin, enabling stored cross-site scripting, data exposure, or unauthorized browser-context actions.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 2.47.11
Update SunEditor to version 2.47.11 or later to apply the sanitizer fix.
- Apply the vendor's security update for suneditor.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | suneditor |
< 2.47.11 |
2.47.11 |
npm install suneditor@2.47.11 |
Per OSV / GitHub Advisories (GHSA-6rf4-v2fh-m6p4). Check the version in your lockfile before upgrading.
Affected products
- JiHong88 · suneditor
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.