Live threats

All CVEs / Gradio Project

CVE-2024-2206Gradio Project Gradio

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
0.5%
probability of exploitation in 30 days · percentile 37
Auth required
No
Published
Mar 27, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gradio.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI gradio < 4.18.0 4.18.0 pip install "gradio>=4.18.0"
PyPI gradio < 4.18.0 4.18.0 pip install "gradio>=4.18.0"

Per OSV / GitHub Advisories (GHSA-r364-m2j9-mf4h, PYSEC-2026-1420). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gradio_projectgradio≥ 3.47.1 < 4.18.0

Official sources

References

Links published by the sources. Open them with care.