{"id":"CVE-2024-47084","published":"2024-10-10T21:53:51Z","modified":"2024-10-11T15:24:05Z","title":"CORS origin validation is not performed when the request has a cookie in Gradio","vendor":"gradio-app","product":"gradio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00528,"percentile":0.45619,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-3c67-5hwx-f6wx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":9.12},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio","versions":["< 4.44"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-11T15:23:34.518222Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":["<4.44.0"],"patched":["4.44.0"],"from":["GHSA-3c67-5hwx-f6wx","PYSEC-2024-196"],"provenance":"source"}],"summary":{"text":"The Gradio Python package (gradio-app/gradio) has a flaw in its CORS origin validation, where the server skips checking the request origin when a cookie is present, in the CustomCORSMiddleware component. An attacker can exploit this by hosting a malicious website that makes unauthorized requests to a local Gradio server, potentially uploading files, stealing authentication tokens, or accessing user data, provided the victim visits that site while logged into Gradio and the deployment uses basic authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:58Z"},"euvd":{"id":"EUVD-2024-0064","exploited":false,"provenance":"source"}}