Summary
CVE-2026-49119 is a high-severity path traversal vulnerability in Gradio’s FileExplorer component, affecting all versions prior to 6.16.0. By supplying crafted path segments — including directory traversal sequences (../) or absolute paths — unauthenticated remote attackers can cause Python’s os.path.join to discard the configured root_dir prefix entirely, enabling arbitrary file reads from the server’s filesystem. The CVSS 4.0 score is 8.7 (HIGH).
Technical details
- Root cause: The
preprocess()method of Gradio’sgr.FileExplorercomponent fails to validate user-supplied file paths before passing them toos.path.join. When an absolute path or a path containing..sequences is provided,os.path.joinsilently discards theroot_dirprefix, resolving to a location entirely outside the intended directory boundary (CWE-22). - Trigger conditions: No authentication, no user interaction, and no special configuration are required. Any unauthenticated HTTP request to a Gradio application using the
FileExplorercomponent can trigger the flaw. - Attack vector: Network-accessible; exploitable over the internet against any publicly reachable Gradio endpoint.
- Impact: Arbitrary file read — an attacker can access any file readable by the server process, including environment variable files (e.g.,
/proc/self/environ), application secrets, API keys, cloud credentials, SSH keys, and model configuration files.
Affected software
- Gradio — all versions prior to 6.16.0
Severity
CVSS v3.1 Base Score: 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: Upgrade Gradio to version 6.16.0 or later. The fix introduces path validation via
_safe_joiningr.FileExplorer.preprocess, which rejects absolute paths and any path segments containing..that would escape the configuredroot_dir. - If immediate patching is not feasible: Restrict network access to Gradio instances at the firewall or reverse-proxy level. Ensure Gradio endpoints are not publicly reachable until patched. Additionally, audit the filesystem permissions of the account running the Gradio server to limit the scope of any potential file disclosure.
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

