{"id":"GHSA-g336-c7wv-8hp3","aliases":["GHSA-g336-c7wv-8hp3"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in swagger-ui","summary":"Affected versions of `swagger-ui` are vulnerable to cross-site scripting via the `url` query string parameter.\n\n\n## Recommendation\n\nUpdate to 2.2.1 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Affected versions of `swagger-ui` are vulnerable to cross-site scripting via the `url` query string parameter.\n\n\n## Recommendation\n\nUpdate to 2.2.1 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-01T15:58:06.000Z","modified":"2021-09-23T21:35:43.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.1"}],"ecosystem":"npm","package":"swagger-ui","purl":"pkg:npm/swagger-ui","source":"ghsa"}],"references":[{"url":"https://github.com/swagger-api/swagger-ui/issues/1617","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/swagger-api/swagger-ui/commit/a1aea70f2c64533bf053a41d4da5a8accd0117b7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/swagger-api/swagger-ui","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/137","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g336-c7wv-8hp3","url":"https://github.com/advisories/GHSA-g336-c7wv-8hp3","licence":"CC-BY-4.0","modified":"2021-09-23T21:35:43.000Z"}],"updatedAt":"2026-11-25T22:56:45.341Z"}