CVE-2016-5682
MEDIUM 6.1CVSS 3.1Cross-Site Scripting in swagger-ui
Swagger-UI before 2.2.1 has XSS via the Default field in the Definitions section.
- Published
- 10 Apr 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cret@cert.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-p239-93f7-h6xf
- Sources
- NVDJSONOSV GHSA-p239-93f7-h6xfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smartbear | swagger-uicpe:2.3:a:smartbear:swagger-ui:*:*:*:*:*:*:*:* |
< 2.2.1 | 2.2.1 |
| OSV | npm | swagger-ui | < 2.2.1 | 2.2.1 |
References
- https://community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-ui · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-5682 · ADVISORY
- https://github.com/swagger-api/swagger-ui/issues/1865 · WEB
- https://github.com/swagger-api/swagger-ui · PACKAGE
- https://www.npmjs.com/advisories/126 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 10 Apr 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2020)