原始 OSV JSON
{
"id": "GHSA-p239-93f7-h6xf",
"aliases": [
"CVE-2016-5682"
],
"details": "Affected versions of `swagger-ui` contain a cross-site scripting vulnerability in the key names of a specific nested object in the JSON document.\n\n\n## Proof of Concept\nThe vulnerable object structure is:\n```\n{\n \"definitions\": {\n \"arbitraryVal\": {\n \"properties\": {\n \"<INJECTABLE_KEY_NAME>\": \"LoremIpsum\"\n }\n }\n }\n}\n```\nMalicious JSON documents can be loaded in by providing a URL to them in the `url` query string parameter.\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"
},
"database_specific": {
"last_known_affected_version_range": "<= 2.2.0"
}
}
],
"modified": "2021-09-23T21:32:17Z",
"severity": [],
"published": "2020-09-01T15:30:58Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-5682",
"type": "ADVISORY"
},
{
"url": "https://github.com/swagger-api/swagger-ui/issues/1865",
"type": "WEB"
},
{
"url": "https://community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-ui",
"type": "WEB"
},
{
"url": "https://github.com/swagger-api/swagger-ui",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/advisories/126",
"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:42Z"
}
}