PyPI: gradio

CVE-2024-4940

Safety vulnerability ID: SFTY-20240622-06283

Safety legacy ID: pyup.io-71887

Affected versions of the gradio package are vulnerable to Open Redirect due to improper validation of user-supplied input in URL handling. The application processes URLs without adequately verifying their destination, allowing maliciously crafted redirect parameters to bypass security controls.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Open redirect in gradio

Advisory

Affected versions of the gradio package are vulnerable to Open Redirect due to improper validation of user-supplied input in URL handling. The application processes URLs without adequately verifying their destination, allowing maliciously crafted redirect parameters to bypass security controls.

Affected Package

Affecting gradio package, versions<=4.36.1

Also affects

---

How to Fix

Upgradegradioto4.37.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more