# CVE-2024-47165: CORS origin validation accepts the null origin 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:N/VA:N/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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-10-10T21:36:36.000Z
- Modified: 2026-06-17T07:56:39.407Z
- Also known as: GHSA-89v2-pqfv-c5r9, PYSEC-2024-214
- 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 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.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 5.0
- gradio_project gradio: before 5.0; before 5.0.0
- gradio (PyPI): before 5.0.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:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-89v2-pqfv-c5r9> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47165> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-214.yaml> (web)

## Sources

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

---

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