CVE-2018-19048 Cross-Site Scripting in simditor

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript in victim browsers via malformed SVG elements in the Simditor rich text editor library.

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

What is CVE-2018-19048?

CVE-2018-19048 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 May 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Simditor through 2.3.21 allows DOM XSS via an onload attribute within a malformed SVG element.

Weakness: CWE-79

Which versions are affected by CVE-2018-19048?

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

PackageAffectedFixed in
simditor npmAll versions2.3.22
simditor npmAll versions2.3.22

Products include Mycolorway Simditor.

How do I fix CVE-2018-19048?

Upgrade simditor to 2.3.22 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-2018-19048 being exploited?

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

Sources

Also known as GHSA-8v67-x8q5-3x3g.

Is CVE-2018-19048 in your software?

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

Check your SBOMs for free