---
id: CVE-2026-49119
aliases:
  - PYSEC-2026-2179
  - GHSA-j36p-7w88-g82j
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: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio < 6.16.0
patched:
  - gradio 6.16.0
published: '2026-07-01'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T14:45:05.448085092Z'
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
  - url: 'https://github.com/advisories/GHSA-j36p-7w88-g82j'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-49119'
  - url: 'https://github.com/gradio-app/gradio'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-2179.yaml
tags:
  - osv
  - pip
  - ghsa
epss: 0.0069
epssPercentile: 0.52592
cvssSource: osv
cwe:
  - CWE-22
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`
