CVE-2026-54606

GHSA-w93q-cq9w-58p7 · published 26 Aug 2026 · updated 30 Oct 2026

SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed

8.5HighCVSS 8.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in suneditor 3.1.4.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
JiHong88<3.1.4
npm: suneditor>=3.0.0 <=3.1.33.1.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-54606 severity on Zeptric[![CVE-2026-54606](https://zeptric.io/badge/cve/CVE-2026-54606.svg)](https://zeptric.io/cve/CVE-2026-54606)