GHSA-388g-jwpg-x6j4
MEDIUM 6.5CVSS 3.1Cross-Site Scripting in swagger-ui
Versions of swagger-ui prior to 3.0.13 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize YAML files imported from URLs or copied-pasted. This may allow attackers to execute arbitrary JavaScript.
Recommendation
Upgrade to version 3.0.13 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:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | swagger-ui | < 3.0.13 | 3.0.13 |
References
- https://github.com/swagger-api/swagger-ui/issues/3163 · WEB
- https://github.com/swagger-api/swagger-ui · PACKAGE
- https://snyk.io/vuln/SNYK-JS-SWAGGERUI-449941 · WEB
- https://www.npmjs.com/advisories/985 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Sep 2020)