Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2026-49119: Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks

highCVSS 4.0 8.7 · 3.1 7.5GHSA-j36p-7w88-g82j

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.

Published Jul 1, 2026 · Updated Oct 2, 2026

Affected packages

gradio

Ecosystem
PyPI
Affected
< 6.16.0
Fixed in
6.16.0
Check
pip show gradio

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to PercevalFox.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Gradio vulnerabilities

All Gradio entries