gradio is vulnerable to Path Traversal
75
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range and your application exposes a gr.FileExplorer component.
gradio is vulnerable to Path Traversal in versions 0.0.1 - 6.15.2.
Upgrade the gradio library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant