Skip to content
GradioGHSA-wmjh-cpqj-4v6x

Gradio CORS Origin Validation Bypass Vulnerability

Low3.7CVE-2025-5320 · Published May 29, 2025 · updated Jul 7, 2026

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
gradio
PyPI
>= 5.0.0, <= 5.29.1No fix yet
Details and references

More Gradio advisories

All Gradio
Advisory
Gradio Allows Unauthorized File Copy via Path Manipulation
Medium5.3May 29, 2025
Gradio DOS in multipart boundry while uploading the file
High7.5Mar 20, 2025
Gradio Vulnerable to Open Redirect
Medium5.4Mar 20, 2025
Gradio Path Traversal vulnerability
Medium5.3Mar 20, 2025
Gradio Vulnerable to Denial of Service (DoS) via Crafted Zip Bomb
High7.5Mar 20, 2025
Gradio Vulnerable to Arbitrary File Deletion
High8.2Mar 20, 2025

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.