Summary
CVE-2026-134825 is an authentication bypass in Gradio (CWE-290, Authentication Bypass by Spoofing). It affects Gradio 6.27.0 through 6.31.x. An unauthenticated remote attacker can use the operator’s locally saved Hugging Face token by sending a forged Host: localhost header. The CVE record rates it 8.3 (High) under CVSS v4.0.
Technical details
- Root cause: when SSR mode is enabled, proxied requests bypass the loopback checks. A forged
Host: localhostheader therefore makes the request look local. The CVE record points to the run history code ingradio/history.py. - Trigger conditions: the affected version is running with SSR mode enabled, and the operator has a locally saved Hugging Face token.
- Attack vector: network. The attacker is unauthenticated, needs no user interaction, and sends crafted HTTP requests.
- Impact: the attacker can reach run history endpoints and manipulate data under the operator’s Hugging Face account. The record rates confidentiality impact High and integrity impact Low.
Affected software
- Gradio (PyPI package
gradio) 6.27.0 through 6.31.x, which is every version before 6.32.0.
Severity
- CVSS v4.0: 8.3 (High),
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 6.5 (Medium),
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: upgrade Gradio to 6.32.0 or later.
- Because the flaw exposes the operator’s saved Hugging Face token, consider rotating that token on any instance that ran an affected version with SSR mode enabled. This is a precaution and is not stated in the advisory.
- The sources I reviewed do not describe a workaround. Restricting network access to the Gradio application until it is patched reduces exposure.

