SCEditor has DOM XSS via emoticon URL/HTML injection
Date: 2026-02
Affected: npm/sceditor
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2026-25581
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

If an attacker has the ability control configuration options passed to `sceditor.create()`, like `emoticons`, `charset`, etc. then it's possible for them to trigger an XSS attack due to lack of sanitisation of configuration options. Proof of concept: ```js sceditor.create(textarea, { emoticons: { dropdown: { ':)': { url: 'x" onerror="window.__xss = true' } } } }); ```


Mitigations:

Architectural layers (MAESTRO):