INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2025-5320

Gradio CORS Origin Validation Bypass Vulnerability

CVE-2025-5320 ยท 2025-05-29 low

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Information exposure
Affected
gradio (PyPI)
CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.3% chance of exploitation in 30 days

How it works, in short

A flaw in localhost alias handling in the CORS origin check lets a disallowed origin pass validation and read responses from the server. (Our summary, written by a model. The source text is below.)

Details

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

Source: GitHub Advisory Database, used under CC BY 4.0.