CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()

High 8.7 Published Updated

Unauthenticated attackers can read arbitrary files outside the intended directory via path traversal in the FileExplorer component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-49119?

CVE-2026-49119 is a high-severity path traversal vulnerability in Gradio Project Gradio, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2026-49119?

3 open source packages ship an affected version, including gradio. It affects 1 product.

PackageAffectedFixed in
gradio PyPIAll versions6.16.0
gradio PyPIAll versions6.16.0
gradio PyPIAll versions6.16.0

Products include Gradio Project Gradio.

How do I fix CVE-2026-49119?

Upgrade gradio to 6.16.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-49119 being exploited?

There is no known exploitation of CVE-2026-49119 in the wild and no public exploit code.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-j36p-7w88-g82j, PYSEC-2026-2179.

Is CVE-2026-49119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free