---
id: CVE-2024-2206
aliases:
  - GHSA-r364-m2j9-mf4h
  - PYSEC-2026-1420
title: gradio Server-Side Request Forgery vulnerability
summary: gradio Server-Side Request Forgery vulnerability
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio < 4.18.0
patched:
  - gradio 4.18.0
published: '2024-03-27'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:10.756400591Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-r364-m2j9-mf4h'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-2206'
  - url: >-
      https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6
  - url: 'https://github.com/gradio-app/gradio'
  - url: 'https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e'
tags:
  - osv
  - pip
epss: 0.00421
epssPercentile: 0.33701
ingestedAt: '2026-07-08T18:25:52.626Z'
---

## Overview

An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs in the `/proxy` route. Attackers can exploit this vulnerability by manipulating the `self.replica_urls` set through the `X-Direct-Url` header in requests to the `/` and `/config` routes, allowing the addition of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate checking of safe URLs in the `build_proxy_request` function.

## Affected packages

- `gradio < 4.18.0`

## Remediation

Upgrade to a patched release:

- `gradio 4.18.0`
