Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2025-5320: Gradio CORS Origin Validation Bypass Vulnerability

lowCVSS 4.0 2.9 · 3.1 3.7GHSA-wmjh-cpqj-4v6x

A vulnerability classified as problematic has been found in gradio-app gradio up to 5.29.1. This affects the function isvalidorigin of the component CORS Handler. The manipulation of the argument localhostaliases 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.

Published May 29, 2025 · Updated Jun 5, 2025

Affected packages

gradio

Ecosystem
PyPI
Affected
>= 5.0.0, <= 5.29.1
Fixed in
No patched version yet
Check
pip show gradio

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Gradio vulnerabilities

All Gradio entries