GHSA-h5v5-8746-g7mm: Jupyterlab Remote Code Execution Vulnerability

MODERATE
CWE-863 CWE-602
Published
Advisory Summary

GHSA-h5v5-8746-g7mm is a MODERATE remote code execution vulnerability (CWE-863: Incorrect Authorization) affecting Jupyterlab libraries in the PyPI ecosystem. The issue involves jupyterlab pluginmanager lock-rule enforcement bypass. Remediation is available by upgrading affected packages to version 4.6.2, 4.5.10.

GHSA-h5v5-8746-g7mm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h5v5-8746-g7mm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product Jupyterlab
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-h5v5-8746-g7mm

To remediate this vulnerability, upgrade all affected Jupyterlab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

jupyterlab fixed: 4.6.2
pip install jupyterlab>=4.6.2
jupyterlab fixed: 4.5.10
pip install jupyterlab>=4.5.10
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 jupyterlab

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-h5v5-8746-g7mm, inspect your installed packages using pip:

pip show jupyterlab

Analyze the terminal output to locate any version of Jupyterlab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.2), your application is affected.

Note: The pip show jupyterlab command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Jupyterlab, 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

JupyterLab's plugin manager exposes administrator controls intended to prevent users from enabling or disabling selected plugins. Two server-side enforcement gaps let an authenticated user bypass those controls with direct requests to `/lab/api/plugins`. ### Impact Users could workaround the plugin manager lock rules via direct API access for either: - child plugins of extensions covering multiple plugins - when "lock all" was issued by the administrator The integrity of data can be impacted, and any hardening or restrictions on permitted user actions (e.g. download/upload limits) within the single-user server can be circumvented if those were implemented with plugins that were locked using the faulty mechanisms. ### Patches JupyterLab [`v4.6.2`](https://github.com/jupyterlab/jupyterlab/releases/tag/v4.6.2) and [`v4.5.10`](https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.10) contain the patch. Users of applications that depend on JupyterLab, such as Notebook v7+, should update `jupyterlab` package too. ### Workarounds Manually lock all plugins that should be locked. The core plugin identifiers can be found in [the documentation](https://jupyterlab.readthedocs.io/en/latest/extension/extension_points.html#core-plugins) and identifiers for all installed extensions are listed in the [Plugin Manager](https://jupyterlab.readthedocs.io/en/latest/user/extensions.html#managing-plugins-with-plugin-manager).

GHSA-h5v5-8746-g7mm Affected Jupyterlab Versions

2 component(s)
Fixed Versions:
4.6.24.5.10
Product / Package Ecosystem Affected Versions Fixed Version
jupyterlab
PyPI
≥ 4.6.0
< 4.6.2
4.6.2
jupyterlab
PyPI
≥ 4.1.0
< 4.5.10
4.5.10

References

Frequently Asked Questions

What is GHSA-h5v5-8746-g7mm?
GHSA-h5v5-8746-g7mm is a security vulnerability in Jupyterlab involving JupyterLab PluginManager lock-rule enforcement bypass under CWE-863: Incorrect Authorization.
Which Jupyterlab versions are affected?
Affected versions include releases prior to 4.6.2, 4.5.10 across affected packages: jupyterlab.
What version fixes GHSA-h5v5-8746-g7mm?
Upgrading to 4.6.2, 4.5.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jupyterlab affected?
Yes, jupyterlab is affected in releases prior to 4.6.2, 4.5.10. Upgrade your dependency to 4.6.2, 4.5.10 or later.
What CWE is associated with GHSA-h5v5-8746-g7mm?
GHSA-h5v5-8746-g7mm is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for GHSA-h5v5-8746-g7mm?
Run the dependency tree command: 'pip show jupyterlab'. 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-h5v5-8746-g7mm",
  "modified" : "2026-07-22T23:13:34Z",
  "published" : "2026-07-22T23:13:34Z",
  "aliases" : [ ],
  "summary" : "JupyterLab PluginManager lock-rule enforcement bypass",
  "details" : "JupyterLab's plugin manager exposes administrator controls intended to prevent users from enabling or disabling selected plugins. Two server-side enforcement gaps let an authenticated user bypass those controls with direct requests to `/lab/api/plugins`.\n\n### Impact\n\nUsers could workaround the plugin manager lock rules via direct API access for either:\n- child plugins of extensions covering multiple plugins\n- when \"lock all\" was issued by the administrator\n\nThe integrity of data can be impacted, and any hardening or restrictions on permitted user actions (e.g. download/upload limits) within the single-user server can be circumvented if those were implemented with plugins that were locked using the faulty mechanisms.\n\n### Patches\n\nJupyterLab [`v4.6.2`](https://github.com/jupyterlab/jupyterlab/releases/tag/v4.6.2) and [`v4.5.10`](https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.10) contain the patch.\n\nUsers of applications that depend on JupyterLab, such as Notebook v7+, should update `jupyterlab` package too.\n\n### Workarounds\n\nManually lock all plugins that should be locked. The core plugin identifiers can be found in [the documentation](https://jupyterlab.readthedocs.io/en/latest/extension/extension_points.html#core-plugins) and identifiers for all installed extensions are listed in the [Plugin Manager](https://jupyterlab.readthedocs.io/en/latest/user/extensions.html#managing-plugins-with-plugin-manager).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "jupyterlab"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0"
      }, {
        "fixed" : "4.6.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.1"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "jupyterlab"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.5.10"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.5.9"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-h5v5-8746-g7mm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/pull/19184"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/pull/19185"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/pull/19186"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/commit/be9303f5bcd5308eaeae953c5a3c903046682c2c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/commit/f1beab4a2027af4719d6edc07d52d6cf5a39a432"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jupyterlab/jupyterlab"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/releases/tag/v4.6.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-602", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-22T23:13:34Z",
    "nvd_published_at" : null
  }
}