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

GMS-2016-51: XSS via Content-type header

July 25, 2016

By using a malicious server which returns script as the value of the Content-Type header, it is possible to execute arbitrary code using the demonstration capabilities of Swagger-UI.

References

  • github.com/swagger-api/swagger-ui/issues/1863

Code Behaviors & Features

Detect and mitigate GMS-2016-51 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.1.2-m2 before 2.1.5

Fixed versions

  • 2.1.5

Solution

Upgrade to version 2.1.5 or above.

Source file

npm/swagger-ui/GMS-2016-51.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:19 +0000.