Skip to content
Submit incident
AII-1002-47599
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

CORS origin validation bypassed in Gradio with cookies (CVE-2024-47084)

Gradio's CORS validation was not performed when cookies were present, allowing attackers to make unauthorized requests to local Gradio servers and potentially steal authentication tokens or user data. The vulnerability was patched in version 4.44.

10 October 2024 Β· Gradio Β· Security and cyberattacks
10 October 2024
AII-1002-475992 sources ↓
Quick facts
Organization
Gradio (subject)
Category
Security and cyberattacks
Source
github.com
Date
10 October 2024
Drafted by
Raidu Incident Detection

What happened

Gradio server fails to validate the request origin when a cookie is present, allowing an attacker's website to make unauthorized requests to a local Gradio server.

The vulnerability exists in the CustomCORSMiddleware class, which skips CORS validation for requests containing cookies.

Reported impact

Attackers can upload files, steal authentication tokens, and access user data if the victim visits a malicious website while logged into Gradio.

The vulnerability impacts users who have deployed Gradio locally and use basic authentication.

Index analysis

The vulnerability was patched in Gradio version 4.44 and earlier versions remain affected.

As a workaround, users can manually enforce stricter CORS origin validation by modifying the CustomCORSMiddleware class to bypass the condition that skips validation for requests containing cookies.

Classification

Organization
Gradio (subject)
Category
Security and cyberattacks
Harm status
Potential harm
Intent
Unintentional
Timing
Post-deployment
Failure modes
Data leak
AI systems
Gradio
Regulations
GDPR (cited)

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/gradio-app/gradio/security/advisories/GHSA-3c67-5hwx-f6wx
cve.org
NVD entry