Unrated severityNVD Advisory· Published Jul 8, 2026· Updated Jul 9, 2026
Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint
CVE-2026-59806
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.
Affected products
1- Range: <6.20.0
Patches
Vulnerability mechanics
References
5- github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3fmitrepatch
- github.com/gradio-app/gradio/issues/13593mitretechnical-descriptionexploit
- www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpointmitrethird-party-advisory
- github.com/gradio-app/gradio/pull/13596mitreissue-tracking
- github.com/gradio-app/gradio/releases/tag/gradio%406.20.0mitrerelease-notes
News mentions
0No linked articles in our index yet.