TAU-HOME.COM
LOADING

Gradio ssr_mode Host Header Auth Bypass Vulnerability (CVE-2026-134825) Patched

An authentication bypass vulnerability (CVE-2026-134825) in Gradio's ssr_mode allows remote attackers to exploit forged Host: localhost headers, bypassing loopb

tau · November 25, 2026

#Gradio #SecurityVulnerability #HuggingFace #CVE-2026-134825 #AI

Gradio ssr_mode Host Header Auth Bypass Vulnerability (CVE-2026-134825) Patched

A critical authentication bypass vulnerability (CVE-2026-134825) has been identified in Gradio, the widely adopted open-source Python framework used for building machine learning web interfaces and AI agent demos. The flaw exploits server-side rendering mode settings, urging developers and administrators operating public or enterprise demos to apply immediate security updates.

Gradio ssr_mode security advisory and CVE record interface

Image source: Jernej Furman from Slovenia 쨌 CC BY 2.0 쨌 https://creativecommons.org/licenses/by/2.0 쨌 https://commons.wikimedia.org/wiki/File:Homepage_of_HUGGING_FACE_Website_magnified_on_logo_with_magnifying_glass_(53146954891).jpg

According to official vulnerability records, the flaw affects Gradio versions 6.27.0 up to, but not including, 6.32.0 when server-side rendering mode (ssr_mode) is enabled. The vulnerability stems from a validation oversight where incoming requests processed through the local Node SSR server incorrectly treat forged Host: localhost headers as valid loopback traffic. Rated with a CVSS v4 severity score of 8.3 (High), the issue has been officially addressed in version 6.32.0.

Host Header Forgery and Loopback Check Bypasses

The root cause of this vulnerability lies in how web servers handle and validate the incoming Host header. In environments where Gradio's ssr_mode is enabled, requests proxied through the local Node server are evaluated against loopback criteria. However, the internal logic incorrectly trusted client-supplied Host: localhost headers without robust verification.

Typically, loopback requests originate locally within the machine and bypass strict authentication barriers under the assumption of internal trust. When an attacker sends a remote HTTP request containing a forged header, the system mistakenly identifies it as a direct command from the local operator, lifting security protections and enabling unauthenticated remote attackers to bypass the perimeter.

Hugging Face Token Exposure and Run History Abuse

Once the authentication barrier is bypassed, remote attackers can leverage the operator's locally saved Hugging Face access token—the global platform for sharing AI models and datasets. Because this token represents the user's account privileges, unauthorized entities can wield it to interact with private repositories and sensitive data assets.

Specifically, attackers can invoke run history endpoints under the operator's account. This allows them to list storage buckets, read records and assets, and even write data to buckets. Since these endpoints often handle conversational logs, experimental metadata, or model assets, the vulnerability poses a serious risk of data leakage and integrity compromise.

Immediate Upgrade and Remediation Guidelines

Given that the attack can be launched remotely without prior authentication—combined with the widespread practice of storing local API credentials for AI agents and web demos—this vulnerability demands urgent attention.

Operators currently running Gradio-based web applications, demos, or agent interfaces with ssr_mode enabled must upgrade their packages to Gradio v6.32.0 or later immediately. Furthermore, administrators should audit their server environments exposed to public networks, minimize the permission scopes of local API tokens stored in environment variables or file systems, and maintain rigorous dependency tracking.

Sources

Impact-Site-Verification: 9b3ebd10-6c45-44cf-a014-5b8c19b7b285