Every CVE Search/ Get API key

CVE-2017-1000042

Content Injection via TileJSON attribute in mapbox.js

6.1 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.93%Down 1.8 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.1

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.

Record
CVE-2017-1000042
CVSS 3.0
6.1 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2017-1000042
Updated
2026-11-02
EUVDEUVD-2018-0771 No score

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.

Record
EUVD-2018-0771
Updated
2026-11-03
GitHub AdvisoriesGHSA-qr28-7j6p-9hmv 6.1

Content Injection via TileJSON attribute in mapbox.js

Versions 1.x prior to 1.6.5 and 2.x prior to 2.1.7 of mapbox.js are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios.

If L.mapbox.map or L.mapbox.tileLayer are used to load untrusted TileJSON content from a non-Mapbox URL, it is possible for a malicious user with control over the TileJSON content to inject script content into the "attribution" value of the TileJSON which will be executed in the context of the page using Mapbox.js.

Recommendation

Version 2.x: Update to version 2.1.7 or later. Version 1.x: Update to version 1.6.5 or later.

Record
GHSA-qr28-7j6p-9hmv
CVSS 3.0
6.1 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSVGHSA-qr28-7j6p-9hmv 6.1

Content Injection via TileJSON attribute in mapbox.js

Versions 1.x prior to 1.6.5 and 2.x prior to 2.1.7 of mapbox.js are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios.

If L.mapbox.map or L.mapbox.tileLayer are used to load untrusted TileJSON content from a non-Mapbox URL, it is possible for a malicious user with control over the TileJSON content to inject script content into the "attribution" value of the TileJSON which will be executed in the context of the page using Mapbox.js.

Recommendation

Version 2.x: Update to version 2.1.7 or later. Version 1.x: Update to version 1.6.5 or later.

Record
GHSA-qr28-7j6p-9hmv
CVSS 3.0
6.1 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mapbox.js
npm
before 1.6.5
1.6.5
mapbox.js
npm
2.0.0 up to 2.1.7
2.1.7
mapbox-rails
RubyGems
1.0.0 up to 1.6.5
1.6.5
mapbox-rails
RubyGems
2.0.0 up to 2.1.7
2.1.7
mapbox-rails
RubyGems
1.0.0 up to 1.6.5, plus listed versions
1.0.21.0.31.0.3.11.6.11.6.1.1
1.6.5

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-1000042 is a medium vulnerability (CVSS 6.1) in Mapbox Project Mapbox, published July 13, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.93%, the 60th percentile. Fixed in mapbox.js 1.6.5.

References

MoveEnter Open