Read the docs
TI-2026-39439 Aliases CVE-2026-54606GHSA-w93q-cq9w-58p7

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

Priority HIGH 72CWE-79Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00581 48th percentileScored 2026-11-07
Fix Fixed suneditor (JiHong88): 3.1.4suneditor (npm): 3.1.4

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

VendorProductAffected versionsFixed inStatusSource
JiHong88suneditorbefore 3.1.43.1.4Patch availableCNA
—suneditor (npm)3.0.0 to before 3.1.43.1.4Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-54606
  2. 2026-10-03 Alias added: GHSA-w93q-cq9w-58p7
  3. 2026-10-30 Affected versions changed · GHSA-w93q-cq9w-58p7
  4. 2026-10-30 2 new references · GHSA-w93q-cq9w-58p7

References

  • 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