Description
SunEditor from 3.0.0 before 3.4.0 contains a stored cross-site scripting vulnerability in html.clean() that rebuilds iframes from data-se-iframe-holder-attrs JSON without filtering srcdoc or uppercase SRC keys. Attackers can inject crafted HTML through paste, html.set, or html.insert to execute script in the host page origin when victims load or paste the content.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jihong88 | suneditor | 3.0.0 – < 3.4.0 | 3.4.0 |
References
- GitHub Security Advisory (GHSA-q867-q2hw-f8gp) vendor-advisory
- https://github.com/JiHong88/suneditor/commit/57db24ac218cd10942fed0bb8288e9cb40b334bb patch
- suneditor 3.4.0 Release Notes release-notes
- https://github.com/JiHong88/suneditor/blob/3.3.3/src/core/logic/dom/html.js#L336-L350 technical-description
- VulnCheck Advisory: SunEditor 3.0.0 before 3.4.0 Stored XSS via html.clean() Iframe Placeholder third-party-advisory