All reports
High

Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks

Affected versions

Version ranges need review.

Affected versions
< 6.16.0
Fixed version
6.16.0
Affected versions
<6.16.0
Fixed version
6.16.0

Exploitation

CVE-2026-49119

Probability of exploitation in the next 30 days: 0.69%

FIRST EPSS · 2026-11-21

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.

Links

Credits

  • PercevalFox