{"id":"CVE-2025-5320","aliases":["CVE-2025-5320","GHSA-wmjh-cpqj-4v6x","PYSEC-2026-1423"],"related":[],"kind":"vulnerability","state":"published","title":"gradio-app gradio CORS is_valid_origin privilege escalation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Es wurde eine Schwachstelle in gradio-app gradio bis 5.29.1 entdeckt. Sie wurde als problematisch eingestuft. Hiervon betroffen ist die Funktion is_valid_origin der Komponente CORS Handler. Mittels dem Manipulieren des Arguments localhost_aliases mit unbekannten Daten kann eine erweiterte Rechte-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Die Komplexität eines Angriffs ist eher hoch. Sie ist schwierig auszunutzen. Der Exploit steht zur öffentlichen Verfügung.","source":"cvelist"},{"lang":"en","text":"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 origin validation error. 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado una vulnerabilidad clasificada como problemática en gradio-app gradio (hasta la versión 5.29.1). Esta vulnerabilidad afecta a la función \"is_valid_origin\" del componente CORS Handler. La manipulación del argumento \"localhost_aliases\" provoca un error de validación de origen. Es posible iniciar el ataque de forma remota. Es un ataque de complejidad bastante alta. Parece difícil de explotar. Se ha hecho público el exploit y puede que sea utilizado. Se contactó al proveedor con antelación para informarle sobre esta divulgación, pero no respondió.","source":"nvd"}],"published":"2025-05-29T13:31:04.612Z","modified":"2026-07-07T17:56:26.709Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-345","CWE-346"],"affected":[{"ranges":[{"version":"5.29.0","status":"affected"},{"version":"5.29.1","status":"affected"}],"vendor":"gradio-app","product":"gradio","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","lastAffected":"5.29.1"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","lastAffected":"5.29.1"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.310491","tags":["technical-description","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.310491","tags":["permissions-required","signature","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?submit.580250","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe","tags":["related","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5320","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/gradio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-wmjh-cpqj-4v6x","tags":["advisory"],"sources":["pysec"]}],"credits":["Jiacheng Zhong","Zhengyu Liu","Gavin Zhong (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-05-29T13:43:51.563Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-5320","url":"https://www.cve.org/CVERecord?id=CVE-2025-5320","licence":"CVE Terms of Use","modified":"2025-06-01T04:39:35.844Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wmjh-cpqj-4v6x","url":"https://github.com/advisories/GHSA-wmjh-cpqj-4v6x","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:26.709Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-5320","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5320","licence":"Public domain","modified":"2026-06-17T09:47:40.460Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1423","url":"https://osv.dev/vulnerability/PYSEC-2026-1423","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:41.380Z"}],"updatedAt":"2026-11-25T22:58:58.556Z","epss":{"score":0.00268,"percentile":0.20166,"date":"2026-12-01T12:00:22.000Z"}}