SunEditor before 3.4.0 Stored XSS via DocumentType Header textContent
Fix:the vendor lists fixed versions See versions ↓
JiHong88 · suneditor
The SunEditor rich-text editor, versions before 3.4.0, contains a stored cross-site scripting flaw in its DocumentType constructor, which inserts header text into innerHTML without HTML escaping. An attacker who can store crafted, entity-encoded HTML in h1-h6 headers can execute JavaScript when an editor using document:header mode initializes, which requires user interaction and can be used to steal session cookies.
Official description · NVD
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.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Disclosed on 8 Nov 2026. No public exploit code or confirmed exploitation is recorded.
Affected versions and fixes
as published in the CVE recordJiHong88 suneditor
Affected: < 3.4.0
Not affected: 3.4.0
What security researchers reported
Not named in any threat report yetAlso mentioned in 8 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.
- Known_Cve | Nov 17, 2026 | Part 1/316 Nov 2026
- Known_Cve | Nov 16, 2026 | Part 1/315 Nov 2026
- Known_Cve | Nov 15, 2026 | Part 1/314 Nov 2026
- Known_Cve | Nov 14, 2026 | Part 1/313 Nov 2026
- Known_Cve | Nov 13, 2026 | Part 2/312 Nov 2026
- Known_Cve | Nov 12, 2026 | Part 2/311 Nov 2026
- 2 more on OTX