SunEditor before 3.4.0 Stored XSS via DocumentType Header textContent
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 8, 2026
- Updated
- Nov 12, 2026
- Reserved
- Nov 8, 2026
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.
| Product | Versions |
|---|---|
| suneditor JiHong88 | before 3.4.0 Affected3.4.0 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- GitHub Security Advisory (GHSA-h9pq-57qf-vvfh)Vendor Advisory
- VulnCheck Advisory: SunEditor before 3.4.0 Stored XSS via DocumentType Header textContentThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.