Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-5682

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-5682
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:39 UTC · Revision 1

Source evidence

CVE-2016-5682

core-osv · Original source

Published 10 Apr 2017, 03:59 UTC

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

osv:CVE-2016-5682
Complete source record
{
  "id": "59577c0146043b9aec966c4a6339b7df557080987dab771b1b854c0377054b4a",
  "url": "https://osv.dev/vulnerability/CVE-2016-5682",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-5682",
    "summary": "Swagger-UI before 2.2.1 has XSS via the Default field in the Definitions section.",
    "evidence": "osv:CVE-2016-5682",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-5682",
      "aliases": [
        "CVE-2016-5682",
        "GHSA-p239-93f7-h6xf"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/swagger-api/swagger-ui",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d146b01dc8380590214affac7fd0a044087890ff"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:smartbear:swagger-ui:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.2.0",
            "v2.1.5",
            "v2.1.4",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.1.5-M2",
            "v2.1.2-M2",
            "v2.1.4-M2",
            "v2.1.3-M2",
            "v2.1.1-M2",
            "v2.1.0-M2",
            "v2.1.8-M1",
            "v2.1.7-M1",
            "v2.1.6-M1",
            "v2.1.5-M1",
            "v2.1.4-M1",
            "v2.1.3-M1",
            "v2.1.2-M1",
            "v2.1.1-M1",
            "v2.1.0-M1",
            "v2.1.0-alpha.6",
            "v2.1.0-alpha.5",
            "v2.1.0-alpha.4",
            "v2.1.0-alpha.1",
            "v2.0.24",
            "v2.0.22",
            "v2.0.21",
            "v2.0.20",
            "v2.0.19",
            "v2.0.18",
            "v2.0.17",
            "v2.0.16",
            "v2.0.15",
            "v2.0.14",
            "v2.0.12",
            "v2.0.11",
            "v2.0.10",
            "v2.0.9",
            "v2.0.8",
            "v2.0.7",
            "v2.0.4",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "v1.1.15",
            "v1.0.13",
            "v1.0.12",
            "v1.1.7",
            "v1.1.6",
            "v1.1.5",
            "v1.1.4",
            "v1.1.3",
            "v1.1.1",
            "v1.0.1",
            "v1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5682.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:56.243267279Z",
      "provider": "osv",
      "references": [
        "https://community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-ui"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-5682",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 438620,
  "published_at": "2017-04-10T03:59:02.077+00:00"
}