CVE-2026-59806: URL Redirection to Untrusted Site ('Open Redirect') in gradio-app gradio
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.
AI Analysis
Technical Summary
CVE-2026-59806 is an open redirect and SSRF vulnerability in gradio-app's gradio product affecting versions before 6.20.0. The vulnerability exists in the file_fetch() function accessed via the /gradio_api/file= endpoint, which does not properly validate supplied HTTP/HTTPS URLs. This allows attackers to redirect users to arbitrary external URLs or perform SSRF attacks by crafting malicious FileData responses. Such SSRF attacks can target internal cloud metadata services to extract sensitive credentials, including EC2 IAM role credentials. The vulnerability has a CVSS 4.9 (medium) score and is present in cloud-hosted instances of gradio. The vendor manages patching for this cloud service.
Potential Impact
Successful exploitation can lead to user redirection to untrusted sites, potentially facilitating phishing or other social engineering attacks. More critically, the SSRF aspect allows attackers to access internal endpoints such as cloud metadata services, enabling retrieval of sensitive credentials like EC2 IAM role credentials. This can compromise cloud infrastructure security and lead to unauthorized access or privilege escalation within the cloud environment.
Mitigation Recommendations
Since gradio is a cloud-hosted service, the vendor manages remediation server-side. Users should ensure they are using gradio version 6.20.0 or later where this vulnerability is fixed. Check the vendor advisory for confirmation of patch deployment. No additional user action is required if using the cloud service and the vendor has applied the fix.
CVE-2026-59806: URL Redirection to Untrusted Site ('Open Redirect') in gradio-app gradio
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.
CVSS v4.0
Score 4.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59806 is an open redirect and SSRF vulnerability in gradio-app's gradio product affecting versions before 6.20.0. The vulnerability exists in the file_fetch() function accessed via the /gradio_api/file= endpoint, which does not properly validate supplied HTTP/HTTPS URLs. This allows attackers to redirect users to arbitrary external URLs or perform SSRF attacks by crafting malicious FileData responses. Such SSRF attacks can target internal cloud metadata services to extract sensitive credentials, including EC2 IAM role credentials. The vulnerability has a CVSS 4.9 (medium) score and is present in cloud-hosted instances of gradio. The vendor manages patching for this cloud service.
Potential Impact
Successful exploitation can lead to user redirection to untrusted sites, potentially facilitating phishing or other social engineering attacks. More critically, the SSRF aspect allows attackers to access internal endpoints such as cloud metadata services, enabling retrieval of sensitive credentials like EC2 IAM role credentials. This can compromise cloud infrastructure security and lead to unauthorized access or privilege escalation within the cloud environment.
Mitigation Recommendations
Since gradio is a cloud-hosted service, the vendor manages remediation server-side. Users should ensure they are using gradio version 6.20.0 or later where this vulnerability is fixed. Check the vendor advisory for confirmation of patch deployment. No additional user action is required if using the cloud service and the vendor has applied the fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-07T14:39:14.062Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6a4eafe9c9d9e3dbe3adea9c
Added to database: 07/08/2026, 20:15:37 UTC
Last enriched: 07/16/2026, 09:59:47 UTC
Last updated: 08/22/2026, 15:30:30 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.