CVE-2017-1000043 Content Injection via TileJSON Name in mapbox.js

Medium 6.1 Published Updated

Cross-site scripting vulnerability in Mapbox.js allows attackers to execute arbitrary scripts via TileJSON name and map share control in uncommon usage scenarios.

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-2017-1000043?

CVE-2017-1000043 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 Jul 2017. 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

Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON name and map share control

Weakness: CWE-79

Which versions are affected by CVE-2017-1000043?

8 open source packages ship an affected version, including mapbox-rails and mapbox.js. It affects 1 product.

PackageAffectedFixed in
mapbox-rails RubyGemsFrom 1.0.01.6.6
mapbox-rails RubyGemsFrom 1.0.01.6.6
mapbox-rails RubyGemsFrom 2.0.02.2.4
mapbox-rails RubyGemsFrom 2.0.02.2.4
mapbox.js npmAll versions1.6.6
mapbox.js npmAll versions1.6.6
2 more packages
mapbox.js npmFrom 2.0.02.2.4
mapbox.js npmFrom 2.0.02.2.4

Products include Mapbox Mapbox.js.

How do I fix CVE-2017-1000043?

Upgrade mapbox-rails to a fixed version for your release line: 1.6.6 or 2.2.4.

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-2017-1000043 being exploited?

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

Sources

Also known as GHSA-q69p-5h74-w36f.

Is CVE-2017-1000043 in your software?

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

Check your SBOMs for free