VDB
Sign up
—

PYSEC-2026-2179

Quick fix

PYSEC-2026-2179 — gradio: upgrade to the fixed version with the command below.

pip install --upgrade 'gradio>=6.16.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/gradio
Introduced in: 0Fixed in: 6.16.0
Fixpip install --upgrade 'gradio>=6.16.0'

References