CVE-2026-25581
JSON

5.4medium

SCEditor affected by DOM XSS via emoticon URL/HTML injection

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 17% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-25fq-6qgg-qpj8

Description

SCEditor is a lightweight WYSIWYG BBCode and XHTML editor. Prior to 3.2.1, 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. This vulnerability is fixed in 3.2.1.

Affected

Product or packageVersionsReported by
samclarke SCEditor< 3.2.1CVE List
sceditor (npm)before 3.2.1GitHub Advisory Database
sceditor sceditorbefore 3.2.1NVD

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

SCEditor is a lightweight WYSIWYG BBCode and XHTML editor. Prior to 3.2.1, 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. This vulnerability is fixed in 3.2.1.

GitHub Advisory Database

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

SCEditor es un editor WYSIWYG BBCode y XHTML ligero. Antes de la 3.2.1, si un atacante tiene la capacidad de controlar las opciones de configuración pasadas a sceditor.create(), como emoticonos, charset, etc., entonces es posible que desencadenen un ataque XSS debido a la falta de saneamiento de las opciones de configuración. Esta vulnerabilidad está corregida en la 3.2.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-25581 changed 2026-02-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-25fq-6qgg-qpj8 changed 2026-02-06CC-BY-4.0
NVDCVE-2026-25581 changed 2026-06-17Public domain