CVE-2026-124493 SunEditor before 3.4.0 Stored XSS via DocumentType Header textContent
CriticalCVSS 9.3
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| 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