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

High 8.5 Published Updated

An attacker can execute arbitrary JavaScript in the victim's browser by injecting a malicious script element into the SunEditor Embed plugin, leading to potential account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-54606?

CVE-2026-54606 is a high-severity cross-site scripting vulnerability in JiHong88 suneditor, published on 26 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-54606?

2 open source packages ship an affected version, including suneditor.

PackageAffectedFixed in
suneditor npmAll versions3.1.4
suneditor npmAll versions3.1.4

How do I fix CVE-2026-54606?

Upgrade suneditor to 3.1.4 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-54606 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54606 exists.

Sources

Also known as GHSA-w93q-cq9w-58p7.

Is CVE-2026-54606 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free