Lucene search

K
nodejsAlexandra Ulsh, Abdullah Ahmet ErdemNODEJS:74
HistoryJan 11, 2016 - 10:27 p.m.

Content Injection via TileJSON Name

2016-01-1122:27:08
Alexandra Ulsh, Abdullah Ahmet Erdem
www.npmjs.com
15

0.001 Low

EPSS

Percentile

33.2%

Overview

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.

If 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.

Recommendation

Version 1.x: Update to version 1.6.6 or later.
Version 2.x: Update to version 2.2.4 or later.

References

CPENameOperatorVersion
mapbox.jslt1.6.6 || < 2.2.4 > 2.0.0

0.001 Low

EPSS

Percentile

33.2%