Host token disclosure via mocked OAuth session
Published Feb 27, 2026 · Updated Feb 27, 2026
Credential exposure in Gradio 4.16.0 through 6.5.1 allows remote attackers to read the host's Hugging Face token through mocked OAuth. The attach_oauth flow registers _add_mocked_oauth_routes outside Spaces, and _get_mocked_oauth_info places huggingface_hub.get_token() in a base64-readable session cookie signed from the constant "-v4" secret. Exposure requires a network-accessible app using OAuth components, a configured host token, and the default missing OAUTH_CLIENT_SECRET.
Summary
What happened
Credential exposure in Gradio 4.16.0 through 6.5.1 allows remote attackers to read the host's Hugging Face token through mocked OAuth. The attach_oauth flow registers _add_mocked_oauth_routes outside Spaces, and _get_mocked_oauth_info places huggingface_hub.get_token() in a base64-readable session cookie signed from the constant "-v4" secret. Exposure requires a network-accessible app using OAuth components, a configured host token, and the default missing OAUTH_CLIENT_SECRET.
The record
- CVE
- CVE-2026-27167
- Published
- Feb 27, 2026
- Updated
- Feb 27, 2026
- Vendor
- Gradio
- Product
- Gradio
- Classifications
- CWE-798, CWE-522, T1528
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 27, 2026CVE publishedPublication date reported by the CVE source.
- Feb 27, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.16.0, < 6.6.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Gradio mocked OAuth token disclosure proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo