Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. swagger-ui
  4. ›
  5. CVE-2016-5682

CVE-2016-5682: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

September 1, 2020 (updated September 23, 2021)

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

References

  • community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-ui
  • github.com/advisories/GHSA-p239-93f7-h6xf
  • github.com/swagger-api/swagger-ui/issues/1865
  • nvd.nist.gov/vuln/detail/CVE-2016-5682
  • www.npmjs.com/advisories/126

Code Behaviors & Features

Detect and mitigate CVE-2016-5682 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.2.0

Fixed versions

  • 2.2.1

Solution

Upgrade to version 2.2.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/swagger-ui/CVE-2016-5682.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:35 +0000.