CVE-2019-13127 mxGraph vulnerable to cross-site scripting in color field

Medium 6.1 Published Updated

Cross-site scripting vulnerability in the draw.io Diagrams plugin for Confluence allows attackers to execute arbitrary scripts via improper input validation.

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-2019-13127?

CVE-2019-13127 is a medium-severity cross-site scripting vulnerability in n/a, published on 1 Jul 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

An issue was discovered in mxGraph through 4.0.0, related to the "draw.io Diagrams" plugin before 8.3.14 for Confluence and other products. Improper input validation/sanitization of a color field leads to XSS. This is associated with javascript/examples/grapheditor/www/js/Dialogs.js.

Weakness: CWE-79, CWE-20

Which versions are affected by CVE-2019-13127?

2 open source packages ship an affected version, including mxgraph. It affects 2 products.

PackageAffectedFixed in
mxgraph npmAll versions4.0.1
mxgraph npmAll versions4.0.1

Products include Draw Draw.io Diagrams, Jgraph Mxgraph.

How do I fix CVE-2019-13127?

Upgrade mxgraph to 4.0.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-2019-13127 being exploited?

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

Sources

Also known as GHSA-xm59-jvxm-cp3v.

Is CVE-2019-13127 in your software?

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

Check your SBOMs for free