GHSA-g336-c7wv-8hp3
CRITICALCross-Site Scripting in swagger-ui
Affected versions of swagger-ui are vulnerable to cross-site scripting via the url query string parameter.
Recommendation
Update to 2.2.1 or later.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | swagger-ui | < 2.2.1 | 2.2.1 |
References
- https://github.com/swagger-api/swagger-ui/issues/1617 · WEB
- https://github.com/swagger-api/swagger-ui/commit/a1aea70f2c64533bf053a41d4da5a8accd0117b7 · WEB
- https://github.com/swagger-api/swagger-ui · PACKAGE
- https://www.npmjs.com/advisories/137 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2020)