GitHub Advisoryadvisory · npm, RubyGems
GHSA-qr28-7j6p-9hmv Content Injection via TileJSON attribute in mapbox.js
MEDIUM
Official page ↗
- Aliases
- CVE-2017-1000042
- Ecosystem
- npm, RubyGems
- Packages
- mapbox.js, mapbox-rails
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2020-06-16
Affected packages
• npm mapbox.js: < 1.6.5 → fixed in 1.6.5
• npm mapbox.js: >= 2.0.0, < 2.1.7 → fixed in 2.1.7
• RubyGems mapbox-rails: >= 1.0.0, < 1.6.5 → fixed in 1.6.5
• RubyGems mapbox-rails: >= 2.0.0, < 2.1.7 → fixed in 2.1.7
Description
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.
Related
Alias · CVE (1)
- CVE-2017-1000042 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… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000042 advisory
- https://hackerone.com/reports/54327 web
- https://github.com/advisories/GHSA-qr28-7j6p-9hmv advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mapbox-rails/CVE-2017-1000042.yml web
- https://nodesecurity.io/advisories/49 web
- https://www.npmjs.com/advisories/49 web