CVE-2017-1000042 Content Injection via TileJSON attribute in mapbox.js
Cross-site scripting vulnerability in Mapbox.js allows attackers to execute arbitrary scripts via TileJSON Name 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-1000042?
CVE-2017-1000042 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.5 and 2.x prior to 2.1.7 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON Name.
Weakness: CWE-79
Which versions are affected by CVE-2017-1000042?
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.5 |
mapbox-rails RubyGems | From 1.0.0 | 1.6.5 |
mapbox-rails RubyGems | From 2.0.0 | 2.1.7 |
mapbox-rails RubyGems | From 2.0.0 | 2.1.7 |
mapbox.js npm | All versions | 1.6.5 |
mapbox.js npm | All versions | 1.6.5 |
2 more packages
mapbox.js npm | From 2.0.0 | 2.1.7 |
mapbox.js npm | From 2.0.0 | 2.1.7 |
Products include Mapbox Project Mapbox.
How do I fix CVE-2017-1000042?
Upgrade mapbox-rails to a fixed version for your release line: 1.6.5 or 2.1.7.
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-1000042 being exploited?
There is no known exploitation of CVE-2017-1000042 in the wild and no public exploit code.
Sources
Also known as GHSA-qr28-7j6p-9hmv.