---
id: CVE-2026-49119
aliases:
  - PYSEC-2026-2179
title: >-
  Gradio before 6.16.0 contain a path traversal vulnerability in the
  FileExplorer component's preprocess() method that allows unauthenticat…
summary: >-
  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…
severity: none
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio < 6.16.0
patched:
  - gradio 6.16.0
published: '2026-07-01'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2026-2179'
references:
  - url: 'https://github.com/gradio-app/gradio/releases/tag/gradio%406.16.0'
  - url: >-
      https://github.com/gradio-app/gradio/commit/97d541f3d5fd05b2587a69ecc94b68fe5d2d7004
  - url: 'https://github.com/gradio-app/gradio/pull/13437'
  - url: >-
      https://www.vulncheck.com/advisories/gradio-path-traversal-via-fileexplorer-preprocess
tags:
  - osv
  - pip
epss: 0.00933
epssPercentile: 0.59027
ingestedAt: '2026-07-13T18:58:07.839Z'
---

## Overview

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 packages

- `gradio < 6.16.0`

## Remediation

Upgrade to a patched release:

- `gradio 6.16.0`
