Open redirect in gradio
Medium5.4CVE-2024-4940 · Published Jun 22, 2024 · updated Sep 10, 2026
An open redirect vulnerability exists in the gradio-app/gradio, affecting the latest version. The vulnerability allows an attacker to redirect users to arbitrary websites, which can be exploited for phishing attacks, Cross-site Scripting (XSS), Server-Side Request Forgery (SSRF), amongst others. This issue is due to improper validation of user-supplied input in the handling of URLs. Attackers can exploit this vulnerability by crafting a malicious URL that, when processed by the application, redirects the user to an attacker-controlled web page.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | <= 4.36.1 | No fix yet |
Details and references
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-601
- Also known as
- CVE-2024-4940, PYSEC-2026-1414
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 12024 | Gradio: code injection | Critical9.8 | No fix yet |
| Jun 62024 | Local file inclusion in gradio | High7.5 | 4.31.3 |
| Jun 62024 | Server-Side Request Forgery in gradio | High8.6 | No fix yet |
| Jun 42024 | Gradio: command injection | Critical9.1 | 4.29.0 |
| May 212024 | Gradio applications running locally vulnerable to 3rd party websites accessing routes and uploading files | Medium4.3 | 4.19.2 |
| May 52024 | Gradio's Component Server does not properly consider` _is_server_fn` for functions | Medium6.5 | 4.13.0 |