Advisory

GHSA-25fq-6qgg-qpj8

Also known as: CVE-2026-25581

Summary

SCEditor has DOM XSS via emoticon URL/HTML injection

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-06 18:34 UTC
Modified
2026-02-06 22:22 UTC

Affected packages and fixes

sceditor

npm · All systems

Affected

  • introduced 0, fixed 3.2.1 (semver)

Fixed versions

3.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences