Vulnerabilities in pkg:pypi/gradio
PACKAGECVE-2026-49119 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Gradio libraries in the PyPI ecosystem. The issue involves gradio fileexplorer preprocess path traversal allows files outside root_dir to reach callbacks. Remediation is available by upgrading affected packages to version 6.16.0.
pkg:pypi/gradio
Vulnerability advisories affecting package pkg:pypi/gradio. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-j36p-7w88-g82j | CVE-2026-49119 | HIGH | Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks |
| GHSA-6655-8ph2-63j3 | CVE-2026-10783 | LOW | Gradio: Audio cache key ignores metadata when saving numpy audio outputs |
| GHSA-7hp7-4p35-3cx2 | CVE-2026-48545 | HIGH | Gradio contains a cookie injection vulnerability |
| GHSA-jmh7-g254-2cq9 | CVE-2026-28416 | HIGH | Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing |
| GHSA-pfjf-5gxr-995x | CVE-2026-28415 | MODERATE | Gradio has an Open Redirect in its OAuth Flow |
| GHSA-39mp-8hj3-5c49 | CVE-2026-28414 | HIGH | Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+ |
| GHSA-h3h8-3v2v-rg7m | CVE-2026-27167 | LOW | Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret |
| GHSA-8jw3-6x8j-v96g | CVE-2025-48889 | MODERATE | Gradio Allows Unauthorized File Copy via Path Manipulation |
| GHSA-j2jg-fq62-7c3h | CVE-2025-23042 | CRITICAL | Gradio Blocked Path ACL Bypass Vulnerability |
| GHSA-rhm9-gp5p-5248 | CVE-2024-51751 | MODERATE | Gradio vulnerable to arbitrary file read with File and UploadButton components |
| GHSA-f3h9-8phc-6gvh | CVE-2024-0964 | HIGH | Gradio Path Traversal vulnerability |
| GHSA-m842-4qm8-7gpq | CVE-2024-1728 | CRITICAL | Gradio allows users to access arbitrary files |
| GHSA-3f95-mxq2-2f63 | - | HIGH | Duplicate Advisory: Gradio Local File Inclusion vulnerability |
| GHSA-5cpq-9538-jm2j | CVE-2024-8966 | HIGH | Gradio DOS in multipart boundry while uploading the file |
| GHSA-6v6g-j5fq-hpvw | CVE-2024-4941 | HIGH | Local file inclusion in gradio |
| GHSA-rvfh-h6c7-fc3c | CVE-2024-34510 | HIGH | Gradio allows credential leakage on Windows |
| GHSA-wmjh-cpqj-4v6x | CVE-2025-5320 | LOW | Gradio CORS Origin Validation Bypass Vulnerability |
| GHSA-7v2w-h4gh-w5cv | CVE-2024-8021 | MODERATE | Gradio Vulnerable to Open Redirect |
| GHSA-prpg-p95c-32fv | CVE-2024-12217 | MODERATE | Gradio Path Traversal vulnerability |
| GHSA-rvgh-pr46-x7gg | CVE-2024-10624 | HIGH | Gradio Vulnerable to Denial of Service (DoS) via Crafted HTTP Request |
| GHSA-7xmc-vhjp-qv5q | CVE-2024-10569 | HIGH | Gradio Vulnerable to Denial of Service (DoS) via Crafted Zip Bomb |
| GHSA-pgfv-gvc5-prfg | CVE-2024-10648 | HIGH | Gradio Vulnerable to Arbitrary File Deletion |
| GHSA-3c67-5hwx-f6wx | CVE-2024-47084 | HIGH | Gradios's CORS origin validation is not performed when the request has a cookie |
| GHSA-37qc-qgx6-9xjv | CVE-2024-47166 | MODERATE | Gradio has a one-level read path traversal in `/custom_component` |
| GHSA-hm3c-93pg-4cxw | CVE-2024-47168 | LOW | In Gradio, the `enable_monitoring` flag set to `False` does not disable monitoring |
| GHSA-j757-pf57-f8r4 | CVE-2024-47869 | MODERATE | Gradio performs a non-constant-time comparison when comparing hashes |
| GHSA-576c-3j53-r9jj | CVE-2024-47167 | MODERATE | Gradio vulnerable to SSRF in the path parameter of /queue/join |
| GHSA-89v2-pqfv-c5r9 | CVE-2024-47165 | MODERATE | Gradio's CORS origin validation accepts the null origin |
| GHSA-77xq-6g77-h274 | CVE-2024-47164 | MODERATE | Gradio's `is_in_or_equal` function may be bypassed |
| GHSA-8c87-gvhj-xm8m | CVE-2024-47867 | HIGH | Gradio lacks integrity checking on the downloaded FRP client |
| GHSA-xh2x-3mrm-fwqm | CVE-2024-47870 | HIGH | Gradio has a race condition in update_root_in_config may redirect user traffic |
| GHSA-4q3c-cj7g-jcwf | CVE-2024-47868 | MODERATE | Gradio has several components with post-process steps allow arbitrary file leaks |
| GHSA-279j-x4gx-hfrh | CVE-2024-47871 | HIGH | Gradio uses insecure communication between the FRP client and server |
| GHSA-gvv6-33j7-884g | CVE-2024-47872 | MODERATE | Gradio has an XSS on every Gradio server via upload of HTML files, JS files, or SVG files |
| GHSA-rhq2-3vr9-6mcr | CVE-2021-43831 | CRITICAL | Files on the host computer can be accessed from the Gradio interface |
| GHSA-3gf9-wv65-gwh9 | CVE-2024-48052 | MODERATE | gradio Server Side Request Forgery vulnerability |
| GHSA-26jh-r8g2-6fpr | - | LOW | Gradio's dropdown component pre-process step does not limit the values to those in the dropdown list |
| GHSA-3x5j-9vwr-8rr5 | CVE-2023-25823 | MODERATE | Update share links to use FRP instead of SSH tunneling |
| GHSA-3qqg-pgqq-3695 | CVE-2023-34239 | MODERATE | Gradio vulnerable to arbitrary file read and proxying of arbitrary URLs |
| GHSA-g6c9-f4xm-9j4x | CVE-2024-4940 | MODERATE | Open redirect in gradio |
| GHSA-973g-55hp-3frw | CVE-2024-4325 | HIGH | Server-Side Request Forgery in gradio |
| GHSA-48cq-79qq-6f7x | CVE-2024-1727 | MODERATE | Gradio applications running locally vulnerable to 3rd party websites accessing routes and uploading files |
| GHSA-3x9g-xfj5-fq84 | - | MODERATE | Duplicate Advisory: Cross-Site Request Forgery in Gradio |
| GHSA-g9cj-cfpp-4g2x | CVE-2024-1561 | HIGH | gradio vulnerable to Path Traversal |
| GHSA-34rf-p3r3-58x2 | CVE-2024-34511 | MODERATE | Gradio's Component Server does not properly consider` _is_server_fn` for functions |
| GHSA-qh6x-j82h-vpf9 | CVE-2024-1183 | MODERATE | gradio Server-Side Request Forgery vulnerability |
| GHSA-r364-m2j9-mf4h | CVE-2024-2206 | HIGH | gradio Server-Side Request Forgery vulnerability |
| GHSA-xcgp-r7r8-2hc9 | CVE-2024-1540 | HIGH | Gradio's CI vulnerable to Command Injection |
| GHSA-hmx6-r76c-85g9 | CVE-2024-1729 | MODERATE | Gradio apps vulnerable to timing attacks to guess password |
| GHSA-gqvf-3hgp-5hxv | CVE-2023-6572 | CRITICAL | Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability |
| GHSA-6qm2-wpxq-7qh2 | CVE-2023-51449 | HIGH | Gradio makes the `/file` secure against file traversal and server-side request forgery attacks |
| GHSA-v4q9-qgqf-7jwp | CVE-2023-41626 | MODERATE | Gradio arbitrary file upload vulnerability |
| GHSA-f8xq-q7px-wg8c | CVE-2022-24770 | HIGH | Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging |
CVE-2026-49119 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-49119
To remediate this vulnerability, upgrade all affected Gradio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install gradio>=6.16.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show gradio
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-49119, inspect your installed packages using pip:
pip show gradio
Analyze the terminal output to locate any version of Gradio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.16.0), your application is affected.
Note: The pip show gradio command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Gradio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-49119 Affected Gradio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gradio
|
PyPI |
< 6.16.0
|
6.16.0
|
References
Frequently Asked Questions
What is CVE-2026-49119?
Which Gradio versions are affected?
What version fixes CVE-2026-49119?
Is gradio affected?
What is the CVSS score of CVE-2026-49119?
What CWE is associated with CVE-2026-49119?
How can I check PyPI dependencies for CVE-2026-49119?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j36p-7w88-g82j",
"modified" : "2026-10-02T18:29:47Z",
"published" : "2026-07-01T21:36:18Z",
"aliases" : [ "CVE-2026-49119" ],
"summary" : " Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "gradio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.16.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49119"
}, {
"type" : "WEB",
"url" : "https://github.com/gradio-app/gradio/pull/13437"
}, {
"type" : "WEB",
"url" : "https://github.com/gradio-app/gradio/commit/97d541f3d5fd05b2587a69ecc94b68fe5d2d7004"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gradio-app/gradio"
}, {
"type" : "WEB",
"url" : "https://github.com/gradio-app/gradio/releases/tag/gradio%406.16.0"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-2179.yaml"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/gradio-path-traversal-via-fileexplorer-preprocess"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-02T18:29:47Z",
"nvd_published_at" : "2026-07-01T19:16:52Z"
}
}