---
id: CVE-2025-5320
aliases:
  - GHSA-wmjh-cpqj-4v6x
  - PYSEC-2026-1423
title: Gradio CORS Origin Validation Bypass Vulnerability
summary: Gradio CORS Origin Validation Bypass Vulnerability
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - 'gradio >= 5.0.0, <= 5.29.1'
published: '2025-05-29'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-wmjh-cpqj-4v6x'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-5320'
  - url: 'https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe'
  - url: >-
      https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc
  - url: 'https://github.com/gradio-app/gradio'
  - url: 'https://vuldb.com/?ctiid.310491'
  - url: 'https://vuldb.com/?id.310491'
  - url: 'https://vuldb.com/?submit.580250'
tags:
  - osv
  - pip
epss: 0.00256
epssPercentile: 0.17614
ingestedAt: '2026-07-08T18:25:53.851Z'
---

## Overview

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.

## Affected packages

- `gradio >= 5.0.0, <= 5.29.1`

## Remediation

Refer to the advisory for the patched release.
