CVE-2018-6561 dijit editor cross-site scripting vulnerability

Medium 6.1 Published Updated

Cross-site scripting vulnerability in Dojo Toolkit allows attackers to execute arbitrary scripts via SVG onload attributes.

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-6561?

CVE-2018-6561 is a medium-severity cross-site scripting vulnerability in n/a, published on 2 Feb 2018. 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

dijit.Editor in Dojo Toolkit 1.13 allows XSS via the onload attribute of an SVG element.

Weakness: CWE-79

Which versions are affected by CVE-2018-6561?

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

PackageAffectedFixed in
dijit npmAll versions1.13.1
dijit npmAll versions1.13.1

Products include Dojotoolkit Dojo.

How do I fix CVE-2018-6561?

Upgrade dijit to 1.13.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-2018-6561 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-6561, GHSA-wp32-wq34-2rqh, UBUNTU-CVE-2018-6561.

Is CVE-2018-6561 in your software?

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

Check your SBOMs for free