Gradio vulnerable to arbitrary file read and proxying of arbitrary URLs
Published 9 Jun 2023 · Updated 10 Sept 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
- <3.34.0
- Fixed in
- 3.34.0
pip install 'gradio>=3.34.0'Details
Impact
There are two separate security vulnerabilities here: (1) a security vulnerability that allows users to read arbitrary files on the machines that are running shared Gradio apps (2) the ability of users to use machines that are sharing Gradio apps to proxy arbitrary URLs
Patches
Both problems have been solved, please upgrade gradio to 3.34.0 or higher
Workarounds
Not possible to workaround except by taking down any shared Gradio apps
References
Relevant PRs:
- https://github.com/gradio-app/gradio/pull/4406
- https://github.com/gradio-app/gradio/pull/4370
Is GHSA-3qqg-pgqq-3695 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
- HighCVE-2026-28414Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+ · 1 Mar 2026
References
- Linkgithub.com/gradio-app/gradio/security/advisories/GHSA-3qqg-pgqq-3695
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-34239
- Linkgithub.com/gradio-app/gradio/pull/4370
- Linkgithub.com/gradio-app/gradio/pull/4406
- Linkgithub.com/gradio-app/gradio/commit/37967617bd97615fb6f3b44e7750c0e0be58479a
- Linkgithub.com/gradio-app/gradio/commit/37967617bd97615fb6f3b44e7750c0e0be58479a#diff-324a7165f5d5a8823a28b76f5653fa45f32c8144c82b2e528882c97c7eae534f
- Linkgithub.com/gradio-app/gradio/commit/cd64130d54e678525774bbb200ef9c7166fa1543
- Packagegithub.com/gradio-app/gradio
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2023-90.yaml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.