CVE-2026-25581 SCEditor affected by DOM XSS via emoticon URL/HTML injection

Medium 5.4 Published Updated

An attacker controlling editor configuration options can inject malicious HTML or URLs to trigger DOM-based Cross-Site Scripting in SCEditor.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-25581?

CVE-2026-25581 is a medium-severity cross-site scripting vulnerability in samclarke SCEditor, published on 6 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-25581?

2 open source packages ship an affected version, including sceditor. It affects 1 product.

PackageAffectedFixed in
sceditor npmAll versions3.2.1
sceditor npmAll versions3.2.1

Products include Sceditor Sceditor.

How do I fix CVE-2026-25581?

Upgrade sceditor to 3.2.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-25581 being exploited?

There is no known exploitation of CVE-2026-25581 in the wild and no public exploit code.

Sources

Also known as GHSA-25fq-6qgg-qpj8.

Is CVE-2026-25581 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free