ADVISORIES

GitHub Advisory Database

GHSA-25fq-6qgg-qpj8

SCEditor has DOM XSS via emoticon URL/HTML injection

Moderate CVE-2026-25581

Details

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:

sceditor.create(textarea, {
  emoticons: {
    dropdown: { ':)': { url: 'x" onerror="window.__xss = true' } }
  }
});

Affected packages

EcosystemPackageAffected versions
npmsceditor
All versions before 3.2.1 (fixed in 3.2.1)

References