{"id":"CVE-2017-1000043","aliases":["EUVD-2018-0768","GHSA-q69p-5h74-w36f"],"status":"published","title":"Content Injection via TileJSON Name in mapbox.js","description":"Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON name and map share control","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00935,"percentile":0.61024,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2017-07-13T20:00:00Z","modified":"2026-06-17T00:58:38Z","fixes":[{"ecosystem":"npm","package":"mapbox.js","fixed_in":["1.6.6","2.2.4"],"sources":["ghsa","osv"]},{"ecosystem":"RubyGems","package":"mapbox-rails","fixed_in":["1.6.6","2.2.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mapbox.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mapbox.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.4"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"mapbox-rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.6.6"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"mapbox-rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.4"}]}]},{"source":"osv","ecosystem":"npm","package":"mapbox.js","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}]},{"source":"osv","ecosystem":"npm","package":"mapbox.js","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.2.4"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"mapbox-rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.6.6"}]}],"versions":["1.0.2","1.0.3","1.0.3.1","1.6.1","1.6.1.1"]},{"source":"osv","ecosystem":"RubyGems","package":"mapbox-rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.4"}]}]}],"products":[{"vendor":"mapbox","product":"mapbox.js"}],"references":[{"url":"https://nodesecurity.io/advisories/74","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","web"]},{"url":"https://hackerone.com/reports/99245","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000043","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q69p-5h74-w36f","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/74","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mapbox-rails/CVE-2017-1000043.yml","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-1000043","description":"Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON name and map share control","status":"published","published":"2017-07-13T20:00:00Z","modified":"2024-08-05T21:53:06.34Z","updated_at":"2026-11-02T14:33:21.142987Z"}],"euvd":[{"id":"EUVD-2018-0768","description":"Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON name and map share control","status":"published","published":"2017-07-13T20:00:00Z","modified":"2024-08-05T21:53:06Z","updated_at":"2026-11-03T02:23:03.593375Z"}],"ghsa":[{"id":"GHSA-q69p-5h74-w36f","title":"Content Injection via TileJSON Name in mapbox.js","description":"Versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 of `mapbox.js` are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios.\n\nIf `L.mapbox.map` or `L.mapbox.shareControl` are used in a manner that gives users control of the TileJSON content, it is possible to inject script content into the name value of the TileJSON. After clicking on the share control, the malicious code will execute in the context of the page using Mapbox.js.\n\n\n\n## Recommendation\n\nVersion 1.x: Update to version 1.6.6 or later.\nVersion 2.x: Update to version 2.2.4 or later.","status":"published","published":"2018-11-09T17:48:34Z","modified":"2023-03-27T22:19:40Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:48.905887Z"}],"nvd":[{"id":"CVE-2017-1000043","description":"Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON name and map share control","status":"published","published":"2017-07-17T13:18:17.28Z","modified":"2026-06-17T00:58:38.43Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:03:54.012105Z"}],"osv":[{"id":"GHSA-q69p-5h74-w36f","title":"Content Injection via TileJSON Name in mapbox.js","description":"Versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 of `mapbox.js` are vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios.\n\nIf `L.mapbox.map` or `L.mapbox.shareControl` are used in a manner that gives users control of the TileJSON content, it is possible to inject script content into the name value of the TileJSON. After clicking on the share control, the malicious code will execute in the context of the page using Mapbox.js.\n\n\n\n## Recommendation\n\nVersion 1.x: Update to version 1.6.6 or later.\nVersion 2.x: Update to version 2.2.4 or later.","status":"published","published":"2018-11-09T17:48:34Z","modified":"2023-11-08T03:58:42.023389Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:54.055966Z"}]}}
