{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "6.20.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "601769e2cd42dc67ed20b6028fc388fcd82e0ebd"
            },
            {
              "fixed": "1c5c53842df9c2750552d85c19a92e7e732cff3f"
            }
          ],
          "repo": "https://github.com/gradio-app/gradio",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-601",
      "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59806.json"
  },
  "details": "Gradio before 6.20.0 contains an open redirect and server-side request forgery vulnerability that allows attackers to redirect users to arbitrary URLs or perform client-side SSRF by supplying unvalidated HTTP/HTTPS URLs to the file_fetch() function in the /gradio_api/file= endpoint. Attackers can craft a malicious FileData response targeting internal endpoints such as cloud metadata services to retrieve sensitive credentials including EC2 IAM role credentials.",
  "id": "CVE-2026-59806",
  "modified": "2026-07-15T01:49:20.841677007Z",
  "published": "2026-07-08T19:43:32.730Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59806.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59806"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpoint"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/gradio-app/gradio/pull/13596"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3f"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gradio-app/gradio"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/gradio-app/gradio/issues/13593"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gradio \u003c 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint"
}