{"id":"GHSA-vp93-gcx5-4w52","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 fails to sanitize JSON schemas, allowing attackers to execute arbitrary JavaScript using `\u003cscript\u003e` tags in the method descriptions.\n\n\n## Recommendation\n\nUpgrade to version 2.2.1 or later.","modified":"2021-09-28T17:00:47Z","published":"2020-09-11T21:21:19Z","database_specific":{"github_reviewed_at":"2020-08-31T18:43:06Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/issues/1864"},{"type":"PACKAGE","url":"https://github.com/swagger-api/swagger-ui"},{"type":"WEB","url":"https://www.npmjs.com/advisories/986"}],"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-vp93-gcx5-4w52/GHSA-vp93-gcx5-4w52.json"}}],"schema_version":"1.9.0"}