CVE-2026-48545: Gradio Gradio Contains A Cookie Injection Vulnerability

HIGH
Advisory Identifier: GHSA-7hp7-4p35-3cx2
CVSS 6.8
CWE-384
Published
Advisory Summary

CVE-2026-48545 is a HIGH (CVSS 6.8) gradio contains a cookie injection vulnerability (CWE-384: Session Fixation) affecting Gradio libraries in the PyPI ecosystem. The issue involves gradio contains a cookie injection vulnerability. Remediation is available by upgrading affected packages to version 6.15.0.

CVE-2026-48545 at a Glance

CVE Identifier CVE-2026-48545
GHSA Identifier GHSA-7hp7-4p35-3cx2
Severity HIGH
CVSS v3.1 Base Score 6.8
CWE Classification CWE-384: Session Fixation
Affected Product Gradio
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-48545

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.

gradio fixed: 6.15.0
pip install gradio>=6.15.0
Verify Direct and Transitive Dependencies

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-48545, 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.15.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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. 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

Gradio before version 6.15.0 contains a cookie injection vulnerability that allows remote attackers to perform cross-Space session fixation by exploiting a shared module-level HTTP client used across all users in the reverse proxy endpoint. Attackers controlling any HF Space can return a parent-domain cookie that the shared client stores and automatically replays into all subsequent proxy requests to other legitimate Spaces, affecting all users of the same Gradio deployment.

CVE-2026-48545 Affected Gradio Versions

1 component(s)
Fixed Versions:
6.15.0
Product / Package Ecosystem Affected Versions Fixed Version
gradio
PyPI
< 6.15.0
6.15.0

References

Frequently Asked Questions

What is CVE-2026-48545?
CVE-2026-48545 is a security vulnerability in Gradio involving Gradio contains a cookie injection vulnerability under CWE-384: Session Fixation.
Which Gradio versions are affected?
Affected versions include releases prior to 6.15.0 across affected packages: gradio.
What version fixes CVE-2026-48545?
Upgrading to 6.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gradio affected?
Yes, gradio is affected in releases prior to 6.15.0. Upgrade your dependency to 6.15.0 or later.
What is the CVSS score of CVE-2026-48545?
CVE-2026-48545 has a CVSS v3.1 base score of 6.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-48545?
CVE-2026-48545 is classified under CWE-384: Session Fixation (Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.).
How can I check PyPI dependencies for CVE-2026-48545?
Run the dependency tree command: 'pip show gradio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7hp7-4p35-3cx2",
  "modified" : "2026-07-01T19:33:16Z",
  "published" : "2026-05-27T15:33:26Z",
  "aliases" : [ "CVE-2026-48545" ],
  "summary" : "Gradio contains a cookie injection vulnerability",
  "details" : "Gradio before version 6.15.0 contains a cookie injection vulnerability that allows remote attackers to perform cross-Space session fixation by exploiting a shared module-level HTTP client used across all users in the reverse proxy endpoint. Attackers controlling any HF Space can return a parent-domain cookie that the shared client stores and automatically replays into all subsequent proxy requests to other legitimate Spaces, affecting all users of the same Gradio deployment.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gradio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48545"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/issues/13369"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/pull/13384"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/commit/feb7237d01f359d2ad4ee42d00344e61692b3b39"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gradio-app/gradio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/releases/tag/gradio@6.15.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/gradio-cookie-injection-via-shared-pro"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-01T19:33:16Z",
    "nvd_published_at" : "2026-05-27T15:16:31Z"
  }
}