/

CVE-2026-86044

Severity:

CRITICAL RISK

(9.6)

Unvalidated Redirect (CWE-601) in JupyterLab Desktop

CVE-2026-86044

Awaiting Analysis

Vulnerability type

Category:

Unvalidated Redirect

CWE:

CWE-601

Impact:

Authentication token disclosure and arbitrary code execution as the victim

Severity:

CRITICAL RISK

(9.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

JupyterLab Desktop exposed a privileged preload-bridge function to a renderer without confirming that the page still had the local Jupyter server origin. If a victim opens an attacker-prepared notebook and clicks a crafted link in an affected local managed session, an attacker-controlled page may obtain the server URL and authentication token and use them to run code as the victim.

Affected context

The issue affects JupyterLab Desktop when its renderer can navigate away from the local server origin while retaining access to the preload bridge. The described attack chain requires a local managed session using JupyterLab earlier than 4.4.8 and a victim who opens an untrusted notebook and follows its crafted link. JupyterLab 4.4.8 and later break the initial link-handling step described in the report.

Exploit preconditions

  • Attack surface: A local managed JupyterLab Desktop session with a renderer and preload bridge
  • Required access: An attacker must be able to supply or influence an untrusted notebook; direct access to the victim's server token is not required beforehand
  • Trigger point: The victim opens the notebook and clicks the crafted MathJax link
  • Why exploitation is possible: The renderer can load an attacker-controlled origin without the bridge access being revoked or gated by a current-origin check. The exposed function can return the local server URL and authentication token.

Why this happens

The renderer exposed a privileged API without verifying that the current page remained on the trusted local Jupyter server origin. This is an unvalidated navigation and origin-checking failure associated with CWE-601: a user-triggered link can lead to an untrusted destination. Retaining bridge access after navigation allows that destination to invoke functionality intended for the trusted application context.

Potential impact

  • An attacker-controlled page could obtain a local Jupyter server URL and authentication token.
  • The token could allow unauthorized requests to the Jupyter REST API.
  • An attacker could create and trust a notebook that executes arbitrary code as the victim.
  • The victim's notebooks, data, and local runtime could be compromised.

General mitigation guidance

Defensive patterns include:

  • Bind privileged bridge APIs to a verified, expected origin and deny access after navigation to any other origin.
  • Minimize the functionality and sensitive data exposed to renderer processes; avoid returning reusable credentials where a narrower capability will suffice.
  • Apply strict navigation policies that block or isolate untrusted destinations, and open external links outside the privileged application context.
  • Treat notebooks and embedded links as untrusted input, and use least privilege for the local server and the user's runtime.
  • Use secure-by-default process isolation so that untrusted page content cannot inherit privileged application capabilities.

How teams detect issues like this

  • Review renderer and preload-bridge code for privileged APIs that lack checks against the current page origin.
  • Use static analysis or code review rules to flag bridge methods that return credentials or server endpoints to renderer code.
  • Test navigation boundaries to confirm that bridge access is denied after a renderer leaves the trusted origin.
  • Enforce policies that restrict renderer navigation and limit exposure of authentication material.
  • Automated security review tools may help identify risky navigation and cross-origin privilege patterns.

Sources

SourceLink
github.comgithub.com/jupyterlab/jupyterlab-desktop/commit/7f8f64ae796efae77d106612c95f0edd6c5dc273
github.comgithub.com/jupyterlab/jupyterlab-desktop/releases/tag/v4.6.2-1
github.comgithub.com/jupyterlab/jupyterlab-desktop/security/advisories/GHSA-2mr8-962v-wc67

Frequently asked

questions

The described chain is triggered in a local managed desktop session, but an attacker may be able to deliver a crafted notebook remotely. The victim must open it and click its link.

Not necessarily. The attack relies on the victim interacting with the notebook; the exposed bridge can then reveal the local server URL and authentication token.

Verify the current origin before exposing privileged bridge functions, and revoke or isolate bridge access whenever the renderer navigates to an untrusted page.

Minimize renderer privileges, constrain navigation to trusted origins, keep credentials out of renderer-accessible APIs, and test that untrusted content cannot invoke privileged functionality.

Find out what's already
exploitable in your codebase.