{"id":"GHSA-g336-c7wv-8hp3","aliases":[],"status":"published","title":"Cross-Site Scripting in swagger-ui","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-01T15:58:06Z","modified":"2023-04-03T19:56:23Z","fixes":[{"ecosystem":"npm","package":"swagger-ui","fixed_in":["2.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"swagger-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}]},{"source":"osv","ecosystem":"npm","package":"swagger-ui","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}]}],"references":[{"url":"https://github.com/swagger-api/swagger-ui/issues/1617","tags":["web"]},{"url":"https://www.npmjs.com/advisories/137","tags":["web"]},{"url":"https://github.com/swagger-api/swagger-ui/commit/a1aea70f2c64533bf053a41d4da5a8accd0117b7","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g336-c7wv-8hp3"},{"url":"https://github.com/swagger-api/swagger-ui","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-g336-c7wv-8hp3","title":"Cross-Site Scripting in swagger-ui","description":"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.","status":"published","published":"2020-09-01T15:58:06Z","modified":"2023-04-03T19:56:23Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:49.768564Z"}],"osv":[{"id":"GHSA-g336-c7wv-8hp3","title":"Cross-Site Scripting in swagger-ui","description":"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.","status":"published","published":"2020-09-01T15:58:06Z","modified":"2021-09-23T21:35:43Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.119724Z"}]}}
