Staging Environment: Content and features may be unstable or change without notice.
Advisory details: ruby_advisory_db / gems/mapbox-rails/CVE-2017-1000042
Advisory ID ruby_advisory_db/gems/mapbox-rails/CVE-2017-1000042
Aliases CVE-2017-1000042
GHSA-qr28-7j6p-9hmv
OSV-129854
Summary mapbox-rails Content Injection via TileJSON attribute 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. If you use L.mapbox.map or L.mapbox.tileLayer 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. Such usage is uncommon. The following usage scenarios are not vulnerable: * only trusted TileJSON content is loaded * TileJSON content comes only from mapbox.com URLs * a Mapbox map ID is supplied, rather than a TileJSON URL * CWE: 79 - Improper Neutralization of Input During Web Page Generation (XSS)
Status Published
Exploitability 0.5
Weighted Severity 0.0
Risk
Affected and Fixed Packages Package Details
Introduced and Fixed Package Commit Patches Package Commit Patches Details
Weaknesses (0)
There are no known CWE.
System Score Found at
cvssv2 4.3
cvssv3 6.1
Reference id Reference type URL
CVE-2017-1000042 https://nvd.nist.gov/vuln/detail/CVE-2017-1000042
No exploits are available.

No EPSS data available for this advisory.

Patch URL
There are no known patches.
There are no known vectors.

There are no SSVC decisions available.