6.1med

CVE-2016-5682

Cross-Site Scripting in swagger-ui

Also known as GHSA-p239-93f7-h6xf

Published 9 y ago · modified 4 mo ago · JSON

CVSS
6.1
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
1.0%
percentile 64%
Public exploits
0
none known

Summary

Swagger-UI before 2.2.1 has XSS via the Default field in the Definitions section.

Exploit prediction (EPSS)

1.03% probability of exploitation in the next 30 days, higher than 64% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.16.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD2.04.3AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected packages

EcosystemPackageAffectedFixed in
npmswagger-ui
<2.2.1
2.2.1

Affected products

  • n/a Swagger-UI before 2.2.1

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

  • community.rapid7.com /community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-s · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2016-5682 · advisory
  • github.com /swagger-api/swagger-ui/issues/1865 · web
  • github.com /swagger-api/swagger-ui · package
  • npmjs.com /advisories/126 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.