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 package | Versions | Reported by |
|---|---|---|
| samclarke SCEditor | < 3.2.1 | CVE List |
| sceditor (npm) | before 3.2.1 | GitHub Advisory Database |
| sceditor sceditor | before 3.2.1 | NVD |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-25581 changed 2026-02-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-25fq-6qgg-qpj8 changed 2026-02-06 | CC-BY-4.0 |
| NVD | CVE-2026-25581 changed 2026-06-17 | Public domain |