{"id":"GHSA-25fq-6qgg-qpj8","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.\n\nProof of concept:\n\n```js\nsceditor.create(textarea, {\n  emoticons: {\n    dropdown: { ':)': { url: 'x\" onerror=\"window.__xss = true' } }\n  }\n});\n```","aliases":["CVE-2026-25581"],"modified":"2026-02-06T22:22:53.782187Z","published":"2026-02-06T18:34:30Z","database_specific":{"github_reviewed_at":"2026-02-06T18:34:30Z","cwe_ids":["CWE-79"],"nvd_published_at":"2026-02-06T21:16:17Z","severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/samclarke/SCEditor/security/advisories/GHSA-25fq-6qgg-qpj8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25581"},{"type":"WEB","url":"https://github.com/samclarke/SCEditor/commit/5733aed4f0e257cb78e1ba191715fc458cbd473d"},{"type":"PACKAGE","url":"https://github.com/samclarke/SCEditor"}],"affected":[{"package":{"name":"sceditor","ecosystem":"npm","purl":"pkg:npm/sceditor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-25fq-6qgg-qpj8/GHSA-25fq-6qgg-qpj8.json","last_known_affected_version_range":"\u003c= 3.2.0"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}