CVE-2017-1000043 Content Injection via TileJSON Name in mapbox.js
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.
| Package | Affected | Fixed in |
|---|---|---|
mapbox-rails RubyGems | From 1.0.0 | 1.6.6 |
mapbox-rails RubyGems | From 1.0.0 | 1.6.6 |
mapbox-rails RubyGems | From 2.0.0 | 2.2.4 |
mapbox-rails RubyGems | From 2.0.0 | 2.2.4 |
mapbox.js npm | All versions | 1.6.6 |
mapbox.js npm | All versions | 1.6.6 |
2 more packages
mapbox.js npm | From 2.0.0 | 2.2.4 |
mapbox.js npm | From 2.0.0 | 2.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.