GHSA-4f9m-pxwh-68hg
MEDIUM 6.5CVSS 3.1Cross-Site Scripting in swagger-ui
Versions of swagger-ui prior to 3.20.9 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize URLs used in the OAuth auth flow, which may allow attackers to execute arbitrary JavaScript.
Recommendation
Upgrade to version 3.20.9 or later.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | swagger-ui | < 3.20.9 | 3.20.9 |
References
- https://github.com/swagger-api/swagger-ui/pull/5190 · WEB
- https://github.com/swagger-api/swagger-ui/commit/1e184e8e218676278c83e60a45846c199ce3d15e · WEB
- https://github.com/swagger-api/swagger-ui · PACKAGE
- https://snyk.io/vuln/SNYK-JS-SWAGGERUI-449921 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Sep 2020)