GitHub Advisoryadvisory · npm

GHSA-25fq-6qgg-qpj8 SCEditor has DOM XSS via emoticon URL/HTML injection

MEDIUM Published 2026-02-06 Modified 2026-02-06 Official page ↗
Aliases
CVE-2026-25581
Ecosystem
npm
Packages
sceditor
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2026-02-06

Affected packages

• npm sceditor: < 3.2.1 → fixed in 3.2.1

Description

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' } } } }); ```

Related

Alias · CVE (1)

  • CVE-2026-25581 SCEditor is a lightweight WYSIWYG BBCode and XHTML editor. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References