# CVE-2026-54606: SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- 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.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-26T15:25:58.083Z
- Modified: 2026-10-30T17:15:03.854Z
- Also known as: GHSA-w93q-cq9w-58p7
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- JiHong88 suneditor: < 3.1.4
- suneditor (npm): from 3.0.0 before 3.1.4

## Every score

- GitHub_M: CVSS:4.0 8.5 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/JiHong88/suneditor/security/advisories/GHSA-w93q-cq9w-58p7> (exploit, web)
- <https://github.com/JiHong88/suneditor/issues/1649> (web)
- <https://github.com/JiHong88/suneditor/commit/9d43a5e082101d2d6475cba86e0d58d7c2cf6677> (web)
- <https://github.com/JiHong88/suneditor/releases/tag/3.1.4> (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)

## Sources

- CVE List: [CVE-2026-54606](https://www.cve.org/CVERecord?id=CVE-2026-54606), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-w93q-cq9w-58p7](https://github.com/advisories/GHSA-w93q-cq9w-58p7), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-54606](https://nvd.nist.gov/vuln/detail/CVE-2026-54606), Public domain, modified 2026-09-09

---

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