Quick answers
- Is CVE-2026-59806 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-59806 being exploited in the wild.
- How severe is CVE-2026-59806?
- High severity, with a CVSS score of 7.4, published 8 July 2026.
- Which products and versions are affected?
- Gradio Gradio < 6.20.0.
- Is there a fix for CVE-2026-59806?
- A patch was published on 2026-07-06: Fix committed to main branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-59806 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-59806?
- Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
An open redirect and client-side SSRF vulnerability exists in Gradio's file-serving logic. The `file_fetch()` function in the `/gradio_api/file=` endpoint (and its alias `/gradio_api/file/`) accepts unvalidated HTTP/HTTPS URLs and returns a 302 redirect. Because the `gradio_client` library follows redirects by default, an attacker can craft a malicious `FileData` response to perform SSRF against internal endpoints, such as the AWS EC2 metadata service (169.254.169.254), to exfiltrate IAM role credentials. The vulnerability is fixed in version 6.20.0 by implementing an SSRF-safe streaming proxy using `safehttpx` that validates IP addresses and prevents DNS rebinding.
Affected products
- Gradio Gradio < 6.20.0
Timeline
- 2026-06-03: disclosed: Vulnerability reported to vendor via email
- 2026-07-06: patched: Fix committed to main branch
- 2026-07-07: advisory: Release 6.20.0 published
- 2026-07-08: disclosed: CVE-2026-59806 published
References
- https://github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3f
- https://github.com/gradio-app/gradio/issues/13593
- https://github.com/gradio-app/gradio/pull/13596
- https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0
- https://www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpoint