GSD-2017-1000042
Vulnerability from gsd - Updated: 2015-10-24 00:00Details
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 scenarios.
If you use L.mapbox.map or L.mapbox.tileLayer 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.
Such usage is uncommon. The following usage scenarios are not vulnerable:
* only trusted TileJSON content is loaded
* TileJSON content comes only from mapbox.com URLs
* a Mapbox map ID is supplied, rather than a TileJSON URL
* CWE: 79 - Improper Neutralization of Input During Web Page Generation (XSS)
Aliases
{
"GSD": {
"alias": "CVE-2017-1000042",
"description": "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 scenarios via TileJSON Name.",
"id": "GSD-2017-1000042"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "mapbox-rails",
"purl": "pkg:gem/mapbox-rails"
}
}
],
"aliases": [
"CVE-2017-1000042",
"OSVDB-129854",
"GHSA-qr28-7j6p-9hmv"
],
"details": "Mapbox.js versions 1.x prior to 1.6.5 and 2.x prior to 2.1.7 are vulnerable\nto a cross-site-scripting attack in certain uncommon usage scenarios.\n\nIf you use L.mapbox.map or L.mapbox.tileLayer to load untrusted TileJSON\ncontent from a non-Mapbox URL, it is possible for a malicious user with\ncontrol over the TileJSON content to inject script content into the\n\"attribution\" value of the TileJSON which will be executed in the context of\nthe page using Mapbox.js.\n\nSuch usage is uncommon. The following usage scenarios are not vulnerable:\n\n* only trusted TileJSON content is loaded\n* TileJSON content comes only from mapbox.com URLs\n* a Mapbox map ID is supplied, rather than a TileJSON URL\n\n* CWE: 79 - Improper Neutralization of Input During Web Page Generation (XSS)\n",
"id": "GSD-2017-1000042",
"modified": "2015-10-24T00:00:00.000Z",
"published": "2015-10-24T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000042"
},
{
"type": "WEB",
"url": "https://nodesecurity.io/advisories/49"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/54327"
},
{
"type": "WEB",
"url": "https://github.com/advisories/GHSA-qr28-7j6p-9hmv"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 4.3,
"type": "CVSS_V2"
},
{
"score": 6.1,
"type": "CVSS_V3"
}
],
"summary": "mapbox-rails Content Injection via TileJSON attribute"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"DATE_ASSIGNED": "2017-05-06T20:43:28.290995",
"ID": "CVE-2017-1000042",
"REQUESTER": "ulsh@mapbox.com",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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 scenarios via TileJSON Name."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://hackerone.com/reports/54327",
"refsource": "MISC",
"url": "https://hackerone.com/reports/54327"
},
{
"name": "https://nodesecurity.io/advisories/49",
"refsource": "CONFIRM",
"url": "https://nodesecurity.io/advisories/49"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2017-1000042",
"cvss_v2": 4.3,
"cvss_v3": 6.1,
"date": "2015-10-24",
"description": "Mapbox.js versions 1.x prior to 1.6.5 and 2.x prior to 2.1.7 are vulnerable\nto a cross-site-scripting attack in certain uncommon usage scenarios.\n\nIf you use L.mapbox.map or L.mapbox.tileLayer to load untrusted TileJSON\ncontent from a non-Mapbox URL, it is possible for a malicious user with\ncontrol over the TileJSON content to inject script content into the\n\"attribution\" value of the TileJSON which will be executed in the context of\nthe page using Mapbox.js.\n\nSuch usage is uncommon. The following usage scenarios are not vulnerable:\n\n* only trusted TileJSON content is loaded\n* TileJSON content comes only from mapbox.com URLs\n* a Mapbox map ID is supplied, rather than a TileJSON URL\n\n* CWE: 79 - Improper Neutralization of Input During Web Page Generation (XSS)\n",
"gem": "mapbox-rails",
"ghsa": "qr28-7j6p-9hmv",
"osvdb": 129854,
"patched_versions": [
"~\u003e 1.6.5",
"\u003e= 2.1.7"
],
"related": {
"url": [
"https://nvd.nist.gov/vuln/detail/CVE-2017-1000042",
"https://nodesecurity.io/advisories/49",
"https://hackerone.com/reports/54327",
"https://github.com/advisories/GHSA-qr28-7j6p-9hmv"
]
},
"title": "mapbox-rails Content Injection via TileJSON attribute",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000042"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=1.0.0 \u003c1.6.5||\u003e=2.0.0 \u003c2.1.7",
"affected_versions": "All versions starting from 1.0.0 before 1.6.5, all versions starting from 2.0.0 before 2.1.7",
"cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2023-03-27",
"description": "Mapbox.js versions 1.x prior to 1.6.5 and 2.x prior to 2.1.7 is vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via TileJSON Name.",
"fixed_versions": [
"1.6.5",
"2.1.7"
],
"identifier": "CVE-2017-1000042",
"identifiers": [
"GHSA-qr28-7j6p-9hmv",
"CVE-2017-1000042"
],
"not_impacted": "All versions before 1.0.0, all versions starting from 1.6.5 before 2.0.0, all versions starting from 2.1.7",
"package_slug": "gem/mapbox-rails",
"pubdate": "2018-11-09",
"solution": "Upgrade to versions 1.6.5, 2.1.7 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2017-1000042",
"https://hackerone.com/reports/54327",
"https://github.com/advisories/GHSA-qr28-7j6p-9hmv",
"https://www.npmjs.com/advisories/49",
"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mapbox-rails/CVE-2017-1000042.yml",
"https://nodesecurity.io/advisories/49"
],
"uuid": "b5bd8e32-ed68-44d7-a63f-37235c1288f1"
},
{
"affected_range": "\u003e=1.0.0 \u003c=1.0.4||\u003e=1.1.0 \u003c=1.3.1||\u003e=1.4.0 \u003c=1.4.2||\u003e=1.5.0 \u003c=1.5.2||\u003e=1.6.0 \u003c=1.6.2||=1.6.4||\u003e=2.0.0 \u003c=2.0.1||\u003e=2.1.0 \u003c=2.1.6",
"affected_versions": "All versions starting from 1.0.0 up to 1.0.4, all versions starting from 1.1.0 up to 1.3.1, all versions starting from 1.4.0 up to 1.4.2, all versions starting from 1.5.0 up to 1.5.2, all versions starting from 1.6.0 up to 1.6.2, version 1.6.4, all versions starting from 2.0.0 up to 2.0.1, all versions starting from 2.1.0 up to 2.1.6",
"cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2017-07-20",
"description": "Mapbox is vulnerable to a cross-site-scripting attack in certain uncommon usage scenarios via `TileJSON` Name.",
"fixed_versions": [
"1.6.3",
"1.6.5",
"2.1.7"
],
"identifier": "CVE-2017-1000042",
"identifiers": [
"CVE-2017-1000042"
],
"not_impacted": "All versions before 1.0.0, all versions after 1.0.4 before 1.1.0, all versions after 1.3.1 before 1.4.0, all versions after 1.4.2 before 1.5.0, all versions after 1.5.2 before 1.6.0, all versions after 1.6.2 before 1.6.4, all versions after 1.6.4 before 2.0.0, all versions after 2.0.1 before 2.1.0, all versions after 2.1.6",
"package_slug": "npm/mapbox.js",
"pubdate": "2017-07-17",
"solution": "Upgrade to versions 1.6.3, 1.6.5, 2.1.7 or above.",
"title": "Cross-site Scripting",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2017-1000042"
],
"uuid": "ca214377-b62c-491b-b193-9cb96a5b3a87"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.0:beta:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.0.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.0:beta0:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.5:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.6:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.5.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.0.0:beta1:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.2:beta0:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.0.3:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.3:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.5.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.3.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.0.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.1.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.2.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.3.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.0.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.4.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.4.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.4.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.0.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.0.0:beta0:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.0.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.0.4:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:2.1.4:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.5.1:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:mapbox_project:mapbox:1.6.4:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2017-1000042"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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 scenarios via TileJSON Name."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://nodesecurity.io/advisories/49",
"refsource": "CONFIRM",
"tags": [
"Third Party Advisory"
],
"url": "https://nodesecurity.io/advisories/49"
},
{
"name": "https://hackerone.com/reports/54327",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory"
],
"url": "https://hackerone.com/reports/54327"
}
]
}
},
"impact": {
"baseMetricV2": {
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 4.3,
"confidentialityImpact": "NONE",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": true
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.0"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7
}
},
"lastModifiedDate": "2017-07-20T18:49Z",
"publishedDate": "2017-07-17T13:18Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…