{"cve":"CVE-2024-47084","nvd":{"published":"2024-10-10T22:15:10.263","modified":"2026-06-17T07:56:31.043","status":"Analyzed","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.","cvss_v4":{"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","score":6.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":8.3},"cwes":["CWE-285"],"references":["https://github.com/gradio-app/gradio/security/advisories/GHSA-3c67-5hwx-f6wx"],"products":["gradio_project:gradio"],"source":"nvd","synced_at":"2026-10-19T21:55:31.737901711+00:00"},"epss":{"cve":"CVE-2024-47084","score":0.00528,"percentile":0.44719,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-3c67-5hwx-f6wx","url":"https://osv.dev/vulnerability/GHSA-3c67-5hwx-f6wx","summary":"Gradios's CORS origin validation is not performed when the request has a cookie","modified":"2025-01-21T18:20:57.276539Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<4.44.0"],"fixed":["4.44.0"]}]},{"id":"PYSEC-2024-196","url":"https://osv.dev/vulnerability/PYSEC-2024-196","summary":"","modified":"2025-01-19T16:57:02.275267Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<4.44.0"],"fixed":["4.44.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}