PyPI: gradio

CVE-2024-1728

Safety vulnerability ID: SFTY-20240410-23574

Safety legacy ID: pyup.io-71662

Affected versions of the gradio package are vulnerable to Local File Inclusion due to improper validation of user-supplied input in the UploadButton component. The vulnerability exists in the handling of file upload paths within the /queue/join endpoint, where attackers can manipulate file path parameters to bypass intended access controls and redirect file operations to arbitrary filesystem locations.

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

Overview

Duplicate Advisory: Gradio Local File Inclusion vulnerability

Advisory

gradio - Local File Inclusion

Affected Package

Affecting gradio package, versions<4.19.2

Also affects

---

How to Fix

Upgradegradioto4.19.2or 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