SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · 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 3.1.4, the SunEditor Embed plugin in src/plugins/modal/embed.js parses attacker-controlled raw embed HTML with DOMParser and processes the resulting DOM nodes. When an external script element follows a valid iframe, the plugin recreates a script element from the attacker-controlled src attribute and appends it to the live DOM, causing JavaScript execution in the editor page. If an application stores or reflects SunEditor content without additional backend sanitization, an attacker who can submit embed HTML can trigger stored or reflected cross-site scripting when another user opens, previews, renders, or edits the content, enabling access to page data and account actions as the victim. This issue is fixed in version 3.1.4.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- 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 3.1.4 | 3.1.4 | Patch available | CNA |
| — | suneditor (npm) | 3.0.0 to before 3.1.4 | 3.1.4 | Patch available | GHSA-w93q-cq9w-58p7 |
- suneditor VendorJiHong88 Affected before 3.1.4 Fixed in 3.1.4 Patch available CNA
- suneditor (npm) Vendor— Affected 3.0.0 to before 3.1.4 Fixed in 3.1.4 Patch available GHSA-w93q-cq9w-58p7
Remediation
- Fix · CNA suneditor (JiHong88) Fixed in 3.1.4
- Fix · GHSA-w93q-cq9w-58p7 suneditor (npm) Fixed in 3.1.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54606
- 2026-10-03 Alias added: GHSA-w93q-cq9w-58p7
- 2026-10-30 Affected versions changed · GHSA-w93q-cq9w-58p7
- 2026-10-30 2 new references · GHSA-w93q-cq9w-58p7
References
Other 6
- https://github.com/JiHong88/suneditor/security/advisories/GHSA-w93q-cq9w-58p7
- https://github.com/JiHong88/suneditor/issues/1649
- https://github.com/JiHong88/suneditor/commit/9d43a5e082101d2d6475cba86e0d58d7c2cf6677
- https://github.com/JiHong88/suneditor/releases/tag/3.1.4
- https://github.com/github/advisory-database/pull/10757
- https://github.com/JiHong88/suneditor
More JiHong88 vulnerabilities
- TI-2026-42328 SunEditor: Critical XSS vulnerability - sanitizer bypass CVSS 3.1CRITICAL 10.0
- TI-2026-86759 Stored cross-site scripting in SunEditor via html.clean() CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-54606 · CVE Program
- CVE-2026-54606 · NVD
- FIRST EPSS
- GHSA-w93q-cq9w-58p7 · 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