CVE-2016-5682Smartbear Swagger-ui
Medium 6.1 No auth needed
Follow: this CVE · Smartbear · Smartbear Swagger-ui We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Apr 10, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Swagger-UI before 2.2.1 has XSS via the Default field in the Definitions section.
What to do
- Apply the vendor's security update for Swagger-ui.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | swagger-ui |
< 2.2.1 |
2.2.1 |
npm install swagger-ui@2.2.1 |
Per OSV / GitHub Advisories (GHSA-p239-93f7-h6xf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smartbear | swagger-ui | < 2.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- community.rapid7.com Third Party Advisory