Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXFyMjgtN2o2cC05aG12

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.

Permalink: https://github.com/advisories/GHSA-qr28-7j6p-9hmv
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXFyMjgtN2o2cC05aG12
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 5 years ago
Updated: about 1 year ago


CVSS Score: 6.1
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Identifiers: GHSA-qr28-7j6p-9hmv, CVE-2017-1000042
References: Blast Radius: 27.1

Affected Packages

rubygems:mapbox-rails
Dependent packages: 1
Dependent repositories: 87
Downloads: 177,617 total
Affected Version Ranges: >= 2.0.0, < 2.1.7, >= 1.0.0, < 1.6.5
Fixed in: 2.1.7, 1.6.5
All affected versions: 1.0.2, 1.0.3, 1.6.1
All unaffected versions: 2.3.0
npm:mapbox.js
Dependent packages: 45
Dependent repositories: 318
Downloads: 26,994 last month
Affected Version Ranges: >= 2.0.0, < 2.1.7, < 1.6.5
Fixed in: 2.1.7, 1.6.5
All affected versions: 0.1.0, 0.3.0, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6
All unaffected versions: 1.6.5, 1.6.6, 1.6.7, 2.1.7, 2.1.8, 2.1.9, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.3.0, 2.4.0, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0, 3.3.1