CVE-2026-27167
published none CVSS 3.1 · 0.0Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gradio-app | — | gradio>= 4.16.0, < 6.6.0 | Affected | Not stated | GitHub_M |
Description
Gradio is an open-source Python package designed for quick prototyping. Starting in version 4.16.0 and prior to version 6.6.0, Gradio applications running outside of Hugging Face Spaces automatically enable "mocked" OAuth routes when OAuth components (e.g. `gr.LoginButton`) are used. When a user visits `/login/huggingface`, the server retrieves its own Hugging Face access token via `huggingface_hub.get_token()` and stores it in the visitor's session cookie. If the application is network-accessible, any remote attacker can trigger this flow to steal the server owner's HF token. The session cookie is signed with a hardcoded secret derived from the string `"-v4"`, making the payload trivially decodable. Version 6.6.0 fixes the issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 0.0 / 10
- Severity
- none
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradio-app | gradio | >= 4.16.0, < 6.6.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-798 CWE-798: Use of Hard-coded Credentials
- CWE-522 CWE-522: Insufficiently Protected Credentials
References
1Provider assertions
2GitHub_M · cna
Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1c3e3433c697613f6de419ff660a1bfc72ebb490df3a0fce70a92dc8faf36647
- Ingested
- 23 Sep 2026, 09:07:24 UTC
- Source record
- Official CVE record