CVE-2026-124493: SunEditor before 3.4.0 Stored XSS via DocumentType Header textContent
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.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SunEditorto a version that resolves this vulnerability.Fixed in 3.4.0