Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+
Published 1 Mar 2026 · Updated 6 Jun 2026
Is your project on an affected gradio?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <6.7.0
- Fixed in
- 6.7.0
pip install 'gradio>=6.7.0'Details
Summary
Gradio apps running on Window with Python 3.13+ are vulnerable to an absolute path traversal issue that enables unauthenticated attackers to read arbitrary files from the file system.
Details
Python 3.13+ changed the definition of os.path.isabs so that root-relative paths like /windows/win.ini on Windows are no longer considered absolute paths, resulting in a vulnerability in Gradio's logic for joining paths safely.
This can be exploited by unauthenticated attackers to read arbitrary files from the Gradio server, even when Gradio is set up with authentication.
PoC
% curl http://10.10.10.10:7860/static//windows/win.ini ; for 16-bit app support [fonts] [extensions] [mci extensions] [files] [Mail] MAPI=1
Impact
Arbitrary file read in the context of the Windows user running Gradio.
Is GHSA-39mp-8hj3-5c49 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gradio, and gives you the command that fixes it.
More advisories for gradio
- HighCVE-2026-49119 Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks · 1 Jul 2026
- LowCVE-2026-10783Gradio: Audio cache key ignores metadata when saving numpy audio outputs · 4 Jun 2026
- HighCVE-2026-48545Gradio contains a cookie injection vulnerability · 27 May 2026
- HighCVE-2026-28416Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing · 1 Mar 2026
- MediumCVE-2026-28415Gradio has an Open Redirect in its OAuth Flow · 1 Mar 2026
- LowCVE-2026-27167Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret · 1 Mar 2026
References
- Linkgithub.com/gradio-app/gradio/security/advisories/GHSA-39mp-8hj3-5c49
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-28414
- Linkgithub.com/gradio-app/gradio/commit/6011b00d0154b85532fa901dd73cf8fa7d86fd04
- Packagegithub.com/gradio-app/gradio
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-64.yaml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.