# CVE-2024-47084: CORS origin validation is not performed when the request has a cookie in Gradio

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2024-10-10T21:20:06.000Z
- Modified: 2026-06-17T07:56:31.043Z
- Also known as: GHSA-3c67-5hwx-f6wx, PYSEC-2024-196
- Weaknesses: CWE-285, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 4.44
- gradio_project gradio: before 4.44; before 4.44.0
- gradio (PyPI): before 4.44.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L`
- PyPA Advisory Database: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-3c67-5hwx-f6wx> (advisory, mitigation, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47084> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-196.yaml> (web)

## Sources

- CVE List: [CVE-2024-47084](https://www.cve.org/CVERecord?id=CVE-2024-47084), CVE Terms of Use, modified 2024-10-11
- GitHub Advisory Database: [GHSA-3c67-5hwx-f6wx](https://github.com/advisories/GHSA-3c67-5hwx-f6wx), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-47084](https://nvd.nist.gov/vuln/detail/CVE-2024-47084), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-196](https://osv.dev/vulnerability/PYSEC-2024-196), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-47084 · Whole record: https://cve.day/CVE-2024-47084.json · Rebuilt by cve.day 2026-11-25T22:58:46.634Z
