PyPi: Gradio

CVE-2024-2206

Safety vulnerability ID: 71660

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Mar 27, 2024 Updated at Sep 04, 2025
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of the gradio package are vulnerable to Server-Side Request Forgery (SSRF) due to insufficient validation of user-supplied URLs in the /proxy route. The vulnerability exists in the build_proxy_request function's inadequate checking of safe URLs, allowing attackers to manipulate the self.replica_urls set through the X-Direct-Url header in requests to the / and /config routes.

Affected package

gradio

Latest version: 5.39.0

Python library for easily interacting with trained machine learning models

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

MEDIUM 6.5

CVSS v3 Details

MEDIUM 6.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
LOW
Integrity Impact (I)
LOW
Availability Availability (A)
NONE