PYSEC-2026-2179: Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()

Published Jul 1, 2026
·
Updated

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

1 affected component
gradio gradio<6.16.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Gradio to a version that resolves this vulnerability.

    Fixed in 6.16.0

Event History

Jul 1, 2026
CVE Published
via OSV·06:30 PM
Data Sourced
via OSV·06:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

Unauthenticated remote attackers can exploit it. The affected FileExplorer component must be reachable to the attacker.

2

What does an attacker need to send?

The attacker supplies crafted path segments containing directory-traversal sequences or absolute paths. These can cause path joining to ignore the configured root directory.

3

Are files outside the configured root directory at risk?

Yes. Successful exploitation can allow arbitrary file reads and exposure of sensitive files outside the intended directory.

4

What version resolves the issue?

Upgrade Gradio to version 6.16.0 or later. Versions before 6.16.0 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203