CVE-2024-47165
published medium CVSS 4.0 · 6.9CORS origin validation accepts the null origin in Gradio
Package status and fixes
Description
Gradio is an open-source Python package designed for quick prototyping. This vulnerability relates to **CORS origin validation accepting a null origin**. When a Gradio server is deployed locally, the `localhost_aliases` variable includes "null" as a valid origin. This allows attackers to make unauthorized requests from sandboxed iframes or other sources with a null origin, potentially leading to data theft, such as user authentication tokens or uploaded files. This impacts users running Gradio locally, especially those using basic authentication. Users are advised to upgrade to `gradio>=5.0` to address this issue. As a workaround, users can manually modify the `localhost_aliases` list in their local Gradio deployment to exclude "null" as a valid origin. By removing this value, the Gradio server will no longer accept requests from sandboxed iframes or sources with a null origin, mitigating the potential for exploitation.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradio-app | gradio | < 5.0 (affected) | GitHub_M · cna |
| gradio_project | gradio | 0 to < 5.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-285 CWE-285: Improper Authorization
References
1Provider assertions
2GitHub_M · cna
CORS origin validation accepts the null origin in Gradio
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 64f1448c362a07da6a24a598a06ebfd9ed8541cbe4aa26b578f4e01a9865cd9c
- Ingested
- 23 Sep 2026, 08:28:19 UTC
- Source record
- Official CVE record