Skip to content
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.

GitHub advisory

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 6.16.06.16.0
Details and references

More Gradio advisories

All Gradio

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.