---
id: CVE-2024-48052
aliases:
  - GHSA-3gf9-wv65-gwh9
  - PYSEC-2026-1408
title: gradio Server Side Request Forgery vulnerability
summary: gradio Server Side Request Forgery vulnerability
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio <= 4.42.0
published: '2024-11-05'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:20.274477958Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-3gf9-wv65-gwh9'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-48052'
  - url: 'https://gist.github.com/AfterSnows/45ffc23797f9127e00755376cc610e12'
  - url: 'https://github.com/gradio-app/gradio'
  - url: >-
      https://rumbling-slice-eb0.notion.site/FULL-SSRF-in-gr-DownloadButton-in-gradio-app-gradio-870b21e0908b48cbafd914719ac1a4e6?pvs=4
tags:
  - osv
  - pip
epss: 0.0047
epssPercentile: 0.37952
ingestedAt: '2026-07-08T18:25:44.906Z'
---

## Overview

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 packages

- `gradio <= 4.42.0`

## Remediation

Refer to the advisory for the patched release.
