CVE-2026-134825 in Gradioinfo

Summary

by MITRE • 11/23/2026

Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote unauthenticated attackers to use the operator's locally saved Hugging Face token by sending a forged Host: localhost header. When ssr_mode is enabled, requests proxied through the local Node SSR server pass the loopback check, letting attackers call run history endpoints to list buckets, read records and assets, and write buckets under the operator's account.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified in Gradio versions prior to 6.32.0 represents a critical authentication bypass mechanism rooted in improper validation of HTTP headers during server-side rendering operations. Specifically, this flaw resides within the gradio/history.py module and exploits how the application handles requests proxied through its local Node SSR server when ssr_mode is enabled. The core technical issue involves the loopback address check logic which fails to adequately distinguish between legitimate internal traffic and maliciously crafted external requests that mimic localhost characteristics. By sending a forged Host: localhost header, remote unauthenticated attackers can trick the application into treating their request as if it originated from within the local environment, thereby bypassing security controls designed to restrict access to sensitive history endpoints.

This authentication bypass allows adversaries to exploit the operator's locally saved Hugging Face token without requiring valid credentials or multi-factor authentication. Once inside this privileged context, attackers gain the ability to interact with various backend services associated with the user account. The operational impact is severe as it enables unauthorized listing of storage buckets, reading of stored records and assets, and writing new data under the operator's identity. This level of access effectively compromises the integrity and confidentiality of the user's resources on Hugging Face, potentially leading to data exfiltration, modification of shared models or datasets, and further exploitation within connected ecosystems that trust these credentials for API interactions.

From a classification perspective, this vulnerability aligns with CWE-287 Improper Authentication, as the system fails to correctly verify the identity of an actor before granting access to protected resources. Additionally, it relates to CWE-346 Origin Validation Error because the security mechanism relies on validating the origin or host header in a manner that can be spoofed by remote attackers. In terms of tactical mapping within the MITRE ATT&CK framework, this behavior corresponds to T1078 Valid Accounts where an attacker uses legitimate credentials obtained through bypass techniques rather than brute force or theft from memory. The exploitation also touches upon T1556 Modifying Authentication Process since it involves manipulating header values to alter how authentication checks are performed by the application logic.

The severity of this issue is amplified by its potential for remote code execution implications if combined with other vulnerabilities in dependent libraries, although currently it primarily facilitates unauthorized data access and manipulation. Attackers can leverage these capabilities to steal sensitive information stored within Hugging Face buckets or inject malicious content into shared resources, thereby affecting downstream users who consume those assets. This creates a chain of trust violation that extends beyond the immediate victim to include any parties relying on the integrity of the compromised account's outputs.

Mitigation strategies must prioritize updating Gradio to version 6.32.0 or later where this header validation logic has been corrected to properly enforce loopback restrictions regardless of forged Host headers. For environments unable to update immediately, administrators should disable ssr_mode if server-side rendering is not strictly required for their deployment scenario. Additionally implementing strict input validation on all incoming HTTP requests and ensuring that internal services do not rely solely on host header verification for security decisions can reduce the attack surface. Network-level controls such as firewall rules restricting access to SSR endpoints from external networks provide an additional layer of defense against exploitation attempts targeting this specific vulnerability vector.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!