GradioGHSA-j36p-7w88-g82j
Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks
High7.5CVE-2026-49119 · Published Jul 1, 2026 · updated Oct 2, 2026
Gradio before 6.16.0 contain a path traversal vulnerability in the FileExplorer component's preprocess() method that allows unauthenticated attackers to escape the configured root directory by supplying path segments containing directory traversal sequences or absolute paths. Attackers can provide crafted path segments that cause os.path.join to discard the root_dir prefix entirely, resulting in arbitrary file read or exposure of sensitive files outside the intended directory.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | < 6.16.0 | 6.16.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-22
- Also known as
- CVE-2026-49119, PYSEC-2026-2179
- nvd.nist.gov/vuln/detail/CVE-2026-49119
- github.com/gradio-app/gradio/pull/13437
- github.com/gradio-app/gradio/commit/97d541f3d5fd05b2587a69ecc94b68fe5d2d7004
- github.com/gradio-app/gradio
- github.com/gradio-app/gradio/releases/tag/gradio%406.16.0
- github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-2179.yaml
- www.vulncheck.com/advisories/gradio-path-traversal-via-fileexplorer-preprocess
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 1 | Gradio: path traversal | High7.5 | 6.16.0 |
| Jun 4 | Gradio: Audio cache key ignores metadata when saving numpy audio outputs | Low2.5 | 6.15.1 |
| May 27 | Gradio contains a cookie injection vulnerability | High6.8 | 6.15.0 |
| Mar 1 | Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing | High8.2 | 6.6.0 |
| Mar 1 | Gradio has an Open Redirect in its OAuth Flow | Medium4.3 | 6.6.0 |
| Mar 1 | Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+ | High7.5 | 6.7.0 |