gradio Server Side Request Forgery vulnerability
In gradio <=4.42.0, the gr.DownloadButton function has a hidden server-side request forgery (SSRF) vulnerability. The reason is that within the save_url_to_cache function, there are no restrictions on the URL, which allows access to local target resources. This can lead to the download of local resources and sensitive information.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | gradio | <= 4.42.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-48052
- https://gist.github.com/AfterSnows/45ffc23797f9127e00755376cc610e12
- https://github.com/gradio-app/gradio
- https://rumbling-slice-eb0.notion.site/FULL-SSRF-in-gr-DownloadButton-in-gradio-app-gradio-870b21e0908b48cbafd914719ac1a4e6?pvs=4
- https://pypi.org/project/gradio
- https://github.com/advisories/GHSA-3gf9-wv65-gwh9
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-918- Platform
- Python (PyPI)
- Package
gradio- Disclosed
- 05.11.2024
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1408 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-3gf9-wv65-gwh9 - CC BY 4.0
Vulnerability history: gradio
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 51
- First → latest
- 12.2021 07.2026
- Without a fix
- 13
- Exploited in attacks
- 0
Severity breakdown
- Critical 5
- High 19
- Medium 22
- Low 5
Disclosures per year
- 2021: 1
- 2022: 1
- 2023: 5
- 2024: 28
- 2025: 9
- 2026: 7
-
gradio Server Side Request Forgery vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.