{"id":"GHSA-w992-2gmj-9xxj","aliases":[],"url":"https://o3.security/vulnerability/GHSA-w992-2gmj-9xxj","summary":"Cross-Site Scripting in swagger-ui","details":"Versions of `swagger-ui` prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package allows HTML code in the `swagger.apiInfo.description` value without proper sanitization, which may allow attackers to execute arbitrary JavaScript.\n\n\n## Recommendation\n\nUpgrade to version 2.2.1 or later.","published":"2020-09-11T21:23:29Z","modified":"2021-09-28T17:02:50Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"swagger-ui","fixedVersion":"2.2.1"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/issues/830"},{"type":"PACKAGE","url":"https://github.com/swagger-api/swagger-ui"},{"type":"WEB","url":"https://www.npmjs.com/advisories/988"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-28T17:02:50Z"}}