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

Published May 29, 2025
·
Updated

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 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.

Affected Software

2 affected components
gradio-app gradio<=5.29.1
pip/gradio>=5.0.0<=5.29.1

Event History

May 29, 2025
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:31 PM
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-5320?

CVE-2025-5320 is classified as a problematic vulnerability affecting Gradio up to version 5.29.1.

2

How do I fix CVE-2025-5320?

To fix CVE-2025-5320, update Gradio to the latest version beyond 5.29.1.

3

What component is affected by CVE-2025-5320?

CVE-2025-5320 affects the CORS Handler component, specifically the is_valid_origin function.

4

What type of attack can be initiated due to CVE-2025-5320?

CVE-2025-5320 can lead to origin validation errors that may allow unauthorized access attempts.

5

Who is impacted by CVE-2025-5320?

Users and applications utilizing Gradio versions up to 5.29.1 are impacted by CVE-2025-5320.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203