CVE-2024-47165
Gradio vulnerability analysis and mitigation

Overview

Gradio, an open-source Python package designed for quick prototyping, was found to have a CORS origin validation vulnerability. The issue, identified as CVE-2024-47165, occurs when a Gradio server is deployed locally, where the localhost_aliases variable includes "null" as a valid origin. This vulnerability was disclosed on October 10, 2024, affecting all versions of Gradio prior to version 5.0 (GitHub Advisory).

Technical details

The vulnerability stems from improper CORS (Cross-Origin Resource Sharing) origin validation that accepts null origins. The issue has been assigned a CVSS v4.0 base score of 6.9 (Medium) with vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N, and a CVSS v3.1 base score of 5.4 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. The vulnerability is classified under CWE-285 (Improper Authorization) (NVD).

Impact

The vulnerability allows attackers to make unauthorized requests from sandboxed iframes or other sources with a null origin. This can potentially lead to data theft, including the compromise of user authentication tokens and uploaded files. The impact is particularly significant for users running Gradio locally, especially those implementing basic authentication (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to upgrade to Gradio version 5.0 or later to address this vulnerability. For those unable to upgrade immediately, a workaround is available by manually modifying the localhost_aliases list in the local Gradio deployment to exclude "null" as a valid origin. This modification prevents the Gradio server from accepting requests from sandboxed iframes or sources with a null origin (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Gradio vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48889HIGH7.5
  • GradioGradio
  • gradio
NoYesMay 30, 2025
CVE-2024-8966HIGH7.5
  • GradioGradio
  • gradio
NoNoMar 20, 2025
CVE-2025-5320MEDIUM6.3
  • GradioGradio
  • gradio
NoNoMay 29, 2025
CVE-2024-8021MEDIUM6.1
  • GradioGradio
  • gradio
NoNoMar 20, 2025
CVE-2024-12217MEDIUM5.3
  • GradioGradio
  • gradio
NoNoMar 20, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management