home / blog
2026-11-23 · medium
CVE-2026-134825: Authentication bypass in Gradio
Authentication bypass in Gradio allows unauthenticated attackers to access Hugging Face tokens.

CVE-2026-134825 is an authentication bypass vulnerability present in Gradio versions from 6.27.0 to 6.32.0. The flaw, located in the gradio/history.py file, 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, allowing attackers to call history endpoints.
The vulnerability is classified with medium severity (CVSS 6.5) as declared in the NVD database. It was officially published on November 22, 2026. GitHub signals indicate that the issue resides in the resolve_token function, which grants the operator's token when the host and peer appear to be from loopback. The SSR proxy makes this condition true for remote callers. The problem has been fixed in version 6.32.0.
In defense, it is crucial to immediately apply the update to Gradio version 6.32.0. For installations that cannot be immediately updated, it is recommended to disable ssr_mode unless strictly necessary. Monitor for potential exploitation attempts by watching for anomalous requests to history endpoints and monitor for suspicious activity on Hugging Face accounts associated with the Gradio installation.
At a glance
- What
- Authentication bypass in gradio/history.py that allows remote unauthenticated attackers to use the operator's locally saved Hugging Face token
- Severity
- Medium (CVSS 6.5)
- Affected versions
- Gradio 6.27.0 before 6.32.0
- Fix
- Update to version 6.32.0
- Status
- Confirmed, patch available
- Action
- Immediately apply the update to version 6.32.0
Sources: NVD, CVE-2026-134825