Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. gradio
  4. ›
  5. CVE-2026-49119

CVE-2026-49119: Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks

July 1, 2026 (updated October 2, 2026)

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.

References

  • github.com/advisories/GHSA-j36p-7w88-g82j
  • github.com/gradio-app/gradio/commit/97d541f3d5fd05b2587a69ecc94b68fe5d2d7004
  • github.com/gradio-app/gradio/pull/13437
  • github.com/gradio-app/gradio/releases/tag/gradio%406.16.0
  • github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-2179.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-49119
  • www.vulncheck.com/advisories/gradio-path-traversal-via-fileexplorer-preprocess

Code Behaviors & Features

Detect and mitigate CVE-2026-49119 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.16.0

Fixed versions

  • 6.16.0

Solution

Upgrade to version 6.16.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/gradio/CVE-2026-49119.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 Oct 2026 12:17:42 +0000.