mapbox.js
Affected
- introduced
0, fixed1.6.6(semver)
Fixed versions
1.6.6
Fix
- Fixed version
1.6.6npm install [email protected]
Advisory
Also known as: CVE-2017-1000043
Content Injection via TileJSON Name in mapbox.js
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.
Medium Basis: The source's own band: MODERATE
0, fixed 1.6.6 (semver)1.6.6
1.6.6npm install [email protected]2.0.0, fixed 2.2.4 (semver)2.2.4
2.2.4npm install [email protected]1.0.0, fixed 1.6.6 (ecosystem)1.6.6
The export has no generic command for this ecosystem.
2.0.0, fixed 2.2.4 (ecosystem)2.2.4
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0