PYSEC-2026-63

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/gradio/PYSEC-2026-63.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-63
Aliases
Published
2026-02-27T22:16:22.820Z
Modified
2026-05-20T09:19:01.970731Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

PyPI / gradio

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
6.6.0

Affected versions

4.*
4.16.0
4.17.0
4.18.0
4.19.0
4.19.1
4.19.2
4.20.0
4.20.1
4.21.0
4.22.0
4.23.0
4.24.0
4.25.0
4.26.0
4.27.0
4.28.0
4.28.1
4.28.2
4.28.3
4.29.0
4.31.0
4.31.1
4.31.2
4.31.3
4.31.4
4.31.5
4.32.0
4.32.1
4.32.2
4.33.0
4.35.0
4.36.0
4.36.1
4.37.1
4.37.2
4.38.0
4.38.1
4.39.0
4.40.0
4.41.0
4.42.0
4.43.0
4.44.0
4.44.1
5.*
5.0.0b1
5.0.0b5
5.0.0b6
5.0.0b7
5.0.0b8
5.0.0b9
5.0.0b10
5.0.0
5.0.1
5.0.2
5.1.0
5.3.0
5.4.0
5.5.0
5.6.0
5.7.0
5.7.1
5.8.0
5.9.0
5.9.1
5.10.0
5.11.0
5.12.0
5.13.0
5.13.1
5.13.2
5.14.0
5.15.0
5.16.0
5.16.1
5.16.2
5.17.0
5.17.1
5.18.0
5.19.0
5.20.0
5.20.1
5.21.0
5.22.0
5.23.0
5.23.1
5.23.2
5.23.3
5.24.0
5.25.0
5.25.1
5.25.2
5.26.0
5.27.0
5.27.1
5.28.0
5.29.0
5.29.1
5.30.0
5.31.0
5.32.0
5.32.1
5.33.0
5.33.1
5.33.2
5.34.0
5.34.1
5.34.2
5.35.0
5.36.2
5.37.0
5.38.0
5.38.1
5.38.2
5.39.0
5.40.0
5.41.0
5.41.1
5.42.0
5.43.0
5.43.1
5.44.0
5.44.1
5.45.0
5.46.0
5.46.1
5.47.0
5.47.1
5.47.2
5.48.0
5.49.0
5.49.1
5.50.0.dev0
5.50.0
5.50.1.dev0
5.50.1.dev1
6.*
6.0.0.dev0
6.0.0.dev1
6.0.0.dev3
6.0.0.dev4
6.0.0.dev5
6.0.0
6.0.1
6.0.2
6.1.0
6.2.0
6.3.0
6.4.0
6.5.0
6.5.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/gradio/PYSEC-2026-63.yaml"