原始 OSV JSON{
"id": "GHSA-q69p-5h74-w36f",
"aliases": [
"CVE-2017-1000043"
],
"details": "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.",
"summary": "Content Injection via TileJSON Name in mapbox.js",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.6.6"
}
]
}
],
"package": {
"name": "mapbox.js",
"ecosystem": "npm"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.2.4"
}
]
}
],
"package": {
"name": "mapbox.js",
"ecosystem": "npm"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.6.6"
}
]
}
],
"package": {
"name": "mapbox-rails",
"ecosystem": "RubyGems"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.2.4"
}
]
}
],
"package": {
"name": "mapbox-rails",
"ecosystem": "RubyGems"
}
}
],
"modified": "2023-03-27T22:19:37Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"published": "2018-11-09T17:48:34Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000043",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/99245",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-q69p-5h74-w36f",
"type": "ADVISORY"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mapbox-rails/CVE-2017-1000043.yml",
"type": "WEB"
},
{
"url": "https://nodesecurity.io/advisories/74",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/advisories/74",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2017-07-17T13:18:00Z",
"github_reviewed_at": "2020-06-16T21:51:13Z"
}
}