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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:14:28 +0000.