# CVE-2025-5320: gradio-app gradio CORS is_valid_origin privilege escalation

- Severity: Medium 6.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/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.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-29T13:31:04.612Z
- Modified: 2026-07-07T17:56:26.709Z
- Also known as: GHSA-wmjh-cpqj-4v6x, PYSEC-2026-1423
- Weaknesses: CWE-345, CWE-346
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability classified as problematic has been found in gradio-app gradio up to 5.29.1. This affects the function is_valid_origin of the component CORS Handler. The manipulation of the argument localhost_aliases leads to erweiterte Rechte. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

(As written by CVE List.)

## Affected

- gradio-app gradio: 5.29.0; 5.29.1
- gradio (PyPI): from 5.0.0 up to 5.29.1

## Every score

- VulDB: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- VulDB: CVSS:3.0 3.7 Low `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- VulDB: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:P/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc> (exploit, web)
- <https://vuldb.com/?id.310491> (technical-description, vdb-entry, web)
- <https://vuldb.com/?ctiid.310491> (permissions-required, signature, web)
- <https://vuldb.com/?submit.580250> (third-party-advisory, web)
- <https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe> (related, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5320> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://pypi.org/project/gradio> (package)
- <https://github.com/advisories/GHSA-wmjh-cpqj-4v6x> (advisory)

## Sources

- CVE List: [CVE-2025-5320](https://www.cve.org/CVERecord?id=CVE-2025-5320), CVE Terms of Use, modified 2025-06-01
- GitHub Advisory Database: [GHSA-wmjh-cpqj-4v6x](https://github.com/advisories/GHSA-wmjh-cpqj-4v6x), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-5320](https://nvd.nist.gov/vuln/detail/CVE-2025-5320), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1423](https://osv.dev/vulnerability/PYSEC-2026-1423), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-5320 · Whole record: https://cve.day/CVE-2025-5320.json · Rebuilt by cve.day 2026-11-25T22:58:58.556Z
