Read the docs
TI-2024-02048 Aliases CVE-2024-2206GHSA-r364-m2j9-mf4h

SSRF Vulnerability in gradio-app/gradio

Priority HIGH 68CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00421 36th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed gradio-app/gradio (gradio-app): 4.18gradio (PyPI): 4.18.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gradio-appgradio-app/gradiobefore 4.184.18Patch availableCNA
—gradio (PyPI)before 4.18.04.18.0Patch availableGHSA-r364-m2j9-mf4h
  • gradio-app/gradio Vendorgradio-app Affected before 4.18 Fixed in 4.18 Patch available CNA
  • gradio (PyPI) Vendor— Affected before 4.18.0 Fixed in 4.18.0 Patch available GHSA-r364-m2j9-mf4h

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*3.47.1 to before 4.18.0Vulnerablegradio-app
  • cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* Versions 3.47.1 to before 4.18.0 Vulnerable ·gradio-app

Remediation

  • Fix · CNA gradio-app/gradio (gradio-app) Fixed in 4.18
  • Fix · GHSA-r364-m2j9-mf4h gradio (PyPI) Fixed in 4.18.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-2206
  2. 2026-10-03 Alias added: GHSA-r364-m2j9-mf4h

References

  • TI-2024-26222 Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component… CVSS 3.1CRITICAL 9.8
  • TI-2024-01607 Local File Inclusion in gradio-app/gradio CVSS 3.1HIGH 7.5
  • TI-2024-00889 LFI in Gradio CVSS 3.1CRITICAL 9.4
  • TI-2025-16852 Gradio Blocked Path ACL Bypass Vulnerability CVSS 4.0HIGH 8.7
  • TI-2026-22690 Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing CVSS 3.1HIGH 8.6
  • TI-2024-09866 Path Traversal in gradio-app/gradio CVSS 3.0HIGH 8.2
See all 49 →

Sources