Technical impact
The vulnerability in SunEditor versions before 3.4.0 allows injected header content to be stored and later rendered as raw HTML. When the editor is initialized in document:header mode, the malicious content is set as innerHTML without proper escaping, allowing attackers to inject JavaScript. This stored XSS can steal session cookies and potentially authenticate the user.
Affected Systems
The flaw affects all versions of SunEditor released by JiHong88 prior to 3.4.0. Any deployment that permits user‑defined header elements (h1‑h6) via the editor’s DocumentType feature is vulnerable. The issue is present in any environment that loads the editor in document:header mode.
Risk and Exploitability
The CVSS score of 9.3 classifies the defect as critical. Though the EPSS is not available, the lack of a KEV listing does not diminish the risk. Exploitation requires the attacker to supply header content; thus the attack vector is likely a trusted user or an insider who can input menu. Once exploited, the attacker can execute arbitrary JavaScript in the context of the editor, read cookies, and hijack the session. Mitigation must involve upgrading the library or escaping header textContent.