Description
SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in ModalAnchorEditor's #createBookmarkList, which inserts entity-decoded h1-h6 header textContent into the bookmark list via innerHTML without escaping. Attackers can store HTML-encoded payloads in editor headers that execute JavaScript when a victim opens the link modal and types # in the URL input.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| JiHong88 | suneditor | < 3.4.0 | 3.4.0 |
References
- GitHub Security Advisory (GHSA-5pp5-5qrp-vq56) vendor-advisory
- VulnCheck Advisory: SunEditor before 3.4.0 Stored XSS via Link Modal Bookmark List third-party-advisory