CVE-2026-54606
HIGH 8.5CVSS 4.0SunEditor Embed Plugin has DOM XSS via External Script Element After Iframe Embed
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.
- Published
- 26 Aug 2026
- Last modified
- 30 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-w93q-cq9w-58p7
- Sources
- NVDJSONOSV GHSA-w93q-cq9w-58p7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.5 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | suneditor | >= 3.0.0, < 3.1.4 | 3.1.4 |
References
- https://github.com/JiHong88/suneditor/commit/9d43a5e082101d2d6475cba86e0d58d7c2cf6677 · WEB
- https://github.com/JiHong88/suneditor/issues/1649 · WEB
- https://github.com/JiHong88/suneditor/releases/tag/3.1.4 · WEB
- https://github.com/JiHong88/suneditor/security/advisories/GHSA-w93q-cq9w-58p7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-54606 · ADVISORY
- https://github.com/github/advisory-database/pull/10757 · WEB
- https://github.com/JiHong88/suneditor · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 26 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Aug 2026)