Live threats

All CVEs / Smartbear

CVE-2016-5682Smartbear Swagger-ui

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Swagger-ui.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
smartbearswagger-ui< 2.2.1

Official sources

References

Links published by the sources. Open them with care.