CVE-2024-47084
published medium CVSS 4.0 · 6.9CORS origin validation is not performed when the request has a cookie in Gradio
Package status and fixes
Description
Gradio is an open-source Python package designed for quick prototyping. This vulnerability is related to **CORS origin validation**, where the Gradio server fails to validate the request origin when a cookie is present. This allows an attacker’s website to make unauthorized requests to a local Gradio server. Potentially, attackers can upload files, steal authentication tokens, and access user data if the victim visits a malicious website while logged into Gradio. This impacts users who have deployed Gradio locally and use basic authentication. Users are advised to upgrade to `gradio>4.44` to address this issue. As a workaround, users can manually enforce stricter CORS origin validation by modifying the `CustomCORSMiddleware` class in their local Gradio server code. Specifically, they can bypass the condition that skips CORS validation for requests containing cookies to prevent potential 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:L/VA:L/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 | < 4.44 (affected) | GitHub_M · cna |
| gradio_project | gradio | 0 to < 4.44 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-285 CWE-285: Improper Authorization
References
1Provider assertions
2GitHub_M · cna
CORS origin validation is not performed when the request has a cookie in Gradio
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 59c45b9abe4ef875a07718ed874dc06ce2063de10ca66a945ebb577c2fb3facc
- Ingested
- 23 Sep 2026, 08:28:19 UTC
- Source record
- Official CVE record