{"id":"CVE-2016-1000226","aliases":[],"url":"https://o3.security/vulnerability/CVE-2016-1000226","summary":"Cross-Site Scripting in swagger-ui","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.","published":"2020-09-01T15:28:45Z","modified":"2023-11-08T03:58:07.537176Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"swagger-ui","fixedVersion":"2.2.1"}],"fix":{"url":"https://github.com/swagger-api/swagger-ui/pull/1867","label":"swagger-api/swagger-ui#1867"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-1000226"},{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/issues/1866"},{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/pull/1867"},{"type":"PACKAGE","url":"https://github.com/swagger-api/swagger-ui"},{"type":"WEB","url":"https://www.npmjs.com/advisories/123"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T03:58:07.537176Z"}}