CVE-2026-49119: Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
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 rootdir prefix entirely, resulting in arbitrary file read or exposure of sensitive files outside the intended directory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
gradioto a version that resolves this vulnerability.Fixed in 6.16.0 - Compensating control
Ensure the FileExplorer component is protected so unauthenticated users cannot access the FileExplorer.preprocess() endpoint (e.g., require authentication / restrict access) until the Gradio version is upgraded to 6.16.0 or later.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-49119?
The severity of CVE-2026-49119 is rated as high with a CVSS score of 8.7.
How do I fix CVE-2026-49119?
To fix CVE-2026-49119, upgrade Gradio to version 6.16.0 or later.
What is the impact of CVE-2026-49119?
CVE-2026-49119 allows unauthenticated attackers to exploit a path traversal vulnerability and potentially access files outside the configured root directory.
Which versions of Gradio are affected by CVE-2026-49119?
CVE-2026-49119 affects all versions of Gradio prior to 6.16.0.
What component of Gradio is vulnerable in CVE-2026-49119?
The vulnerability in CVE-2026-49119 exists in the FileExplorer component's preprocess() method.