Description
SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in the DocumentType constructor that injects header textContent into innerHTML without HTML escaping. Attackers can store entity-encoded HTML in h1-h6 headers that executes JavaScript when editors using document:header mode initialize, enabling session cookie theft.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| JiHong88 | suneditor | < 3.4.0 | 3.4.0 |
References
- GitHub Security Advisory (GHSA-h9pq-57qf-vvfh) vendor-advisory
- VulnCheck Advisory: SunEditor before 3.4.0 Stored XSS via DocumentType Header textContent third-party-advisory