{"id":"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.","modified":"2021-09-28T17:02:50Z","published":"2020-09-11T21:23:29Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-08-31T18:43:11Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE"},"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"}],"affected":[{"package":{"name":"swagger-ui","ecosystem":"npm","purl":"pkg:npm/swagger-ui"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-w992-2gmj-9xxj/GHSA-w992-2gmj-9xxj.json"}}],"schema_version":"1.9.0"}