Intel

AIKIDO-2026-247270

gradio is vulnerable to Path Traversal

CVE-2026-49119Published Aug 4, 2026
August 4, 2026

75

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

The FileExplorer component's preprocess() method builds a path by joining a configured root directory with caller-supplied path segments using unsafe path construction. When the segments contain directory traversal sequences or absolute paths, the root prefix is discarded and the resolved path escapes the intended directory. Unauthenticated requests can therefore read arbitrary files outside the configured root, exposing sensitive files on the host. The fix routes both single and multiple selection paths through a safe-join helper that rejects out-of-root resolutions.

How do I fix this?

Upgrade the gradio library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application exposes a gr.FileExplorer component.

Package

Versions

0.0.1 - 6.15.2

Fixed in 6.16.0

Background info

gradio is vulnerable to Path Traversal in versions 0.0.1 - 6.15.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea