Description
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.
Severity (CVSS)
| Base score | 4.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-601 — URL Redirection to Untrusted Site ('Open Redirect')
- CWE-918 — Server-Side Request Forgery (SSRF)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gradio-app | gradio | 0 to <6.20.0 |
References
- https://github.com/gradio-app/gradio/issues/13593 (technical-description exploit)
- https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0 (release-notes)
- https://github.com/gradio-app/gradio/pull/13596 (issue-tracking)
- https://github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3f (patch)
- https://www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpoint (third-party-advisory)
Generated from the official CVE List on 09 Jul 2026 07:08 UTC.