{"id":"GHSA-vp93-gcx5-4w52","aliases":[],"url":"https://o3.security/vulnerability/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 `<script>` tags in the method descriptions.\n\n\n## Recommendation\n\nUpgrade to version 2.2.1 or later.","published":"2020-09-11T21:21:19Z","modified":"2021-09-28T17:00:47Z","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/1864"},{"type":"PACKAGE","url":"https://github.com/swagger-api/swagger-ui"},{"type":"WEB","url":"https://www.npmjs.com/advisories/986"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-28T17:00:47Z"}}