CVE-2026-27167
Gradio is an open-source Python package designed for quick prototyping.
Published Feb 27, 2026 · updated Jun 17, 2026 · gradio project gradio
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. ) are used. When a user visits , the server retrieves its own Hugging Face access token via 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 , making the payload trivially decodable. Version 6.6.0 fixes the issue.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Feb 27, 2026 · NIST NVD
Detected
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. ) are used. When a user visits , the server retrieves its own Hugging Face access token via and stores it in the visitor's session cookie. If t
Jun 17, 2026 · NIST NVD
Updated
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. ) are used. When a user visits , the server retrieves its own Hugging Face access token via and stores it in the visitor's session cookie. If t
Affected
- cpe gradio project/gradioversion unspecified
Sources
- NIST NVDVulnerability recordCVE-2026-27167
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. ) are u
nvd.nist.gov