GradioPYSEC-2026-2179
Gradio: path traversal
Fix: upgrade to 6.16.0 or later
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.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | < 6.16.0 | 6.16.0 |
Changes since it was listed
Severity: Unrated to High
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity from
- NVD
- Also known as
- CVE-2026-49119