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

Read the record on cve.org

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.

ProductVersions
suneditor JiHong88before 3.4.0 Affected3.4.0 Not Affected

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.