CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
Unauthenticated attackers can read arbitrary files outside the intended directory via path traversal in the FileExplorer component.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-49119?
CVE-2026-49119 is a high-severity path traversal vulnerability in Gradio Project Gradio, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-22
Which versions are affected by CVE-2026-49119?
3 open source packages ship an affected version, including gradio. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | 6.16.0 |
gradio PyPI | All versions | 6.16.0 |
gradio PyPI | All versions | 6.16.0 |
Products include Gradio Project Gradio.
How do I fix CVE-2026-49119?
Upgrade gradio to 6.16.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-49119 being exploited?
There is no known exploitation of CVE-2026-49119 in the wild and no public exploit code.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2023-6572 Command Injection in gradio-app/gradio
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
- CVE-2024-4325 Server-Side Request Forgery (SSRF) in gradio-app/gradio
Sources
Also known as GHSA-j36p-7w88-g82j, PYSEC-2026-2179.