What’s Vulnerable › Vulnerabilities
CVE-2024-47871: Insecure communication between the FRP client and server in Gradio
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-10 · updated 2026-06-17
- Weakness: CWE-311
Description
Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves **insecure communication** between the FRP (Fast Reverse Proxy) client and server when Gradio's `share=True` option is used. HTTPS is not enforced on the connection, allowing attackers to intercept and read files uploaded to the Gradio server, as well as modify responses or data sent between the client and server. This impacts users who are sharing Gradio demos publicly over the internet using `share=True` without proper encryption, exposing sensitive data to potential eavesdroppers. Users are advised to upgrade to `gradio>=5` to address this issue. As a workaround, users can avoid using `share=True` in production environments and instead host their Gradio applications on servers with HTTPS enabled to ensure secure communication.
Affected products
- gradio-app gradio: before 5.0.0 — fixed in 5.0.0
How to fix
Upgrade to a fixed version: gradio-app gradio 5.0.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2024-47871 or the next vulnerability affects your stack