SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| JiHong88 | suneditor | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Jihong88 | Suneditor |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-w93q-cq9w-58p7 | SunEditor Embed Plugin has DOM XSS via External Script Element After Iframe Embed |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.581% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Jihong88
Jihong88 suneditor |
|
| Vendors & Products |
Jihong88
Jihong88 suneditor |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed | |
| Weaknesses | CWE-79 | |
| References |
| |
| Metrics |
cvssV4_0
|