Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102832 Overview
CVE-2026-102832 is a race condition vulnerability in JupyterLab, an extensible environment for interactive and reproducible computing based on the Jupyter Notebook architecture. The flaw affects versions from 4.5.7 up to (but not including) 4.5.11 and 4.6.4. The markdownviewer:trust and notebook:trust command-link handlers resolve the active document using tracker.currentWidget at the moment the user confirms the prompt, rather than retaining the document whose button was originally clicked. If focus shifts to a different document before the user clicks Trust, JupyterLab marks the wrong document as trusted. Downstream applications bundling JupyterLab, including affected Notebook and JupyterLite releases, inherit this behavior.
Critical Impact
An attacker who can influence which widget is current when a user accepts a trust prompt can cause a notebook to be marked trusted without informed consent, triggering unprompted command execution, saving unsaved edits, and persisting a server-side signature.
Affected Products
- JupyterLab versions 4.5.7 through 4.5.10
- JupyterLab versions 4.6.0 through 4.6.3
- Downstream applications bundling JupyterLab, including affected Notebook and JupyterLite releases
Discovery Timeline
- 2026-10-13 - CVE CVE-2026-102832 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-102832
Vulnerability Analysis
The vulnerability is a time-of-check to time-of-use (TOCTOU) race condition [CWE-367] in JupyterLab's trust command handlers. When a user clicks a trust command link within a Markdown viewer or notebook, JupyterLab opens a confirmation dialog. The handler does not capture a reference to the document that initiated the request. Instead, it reads tracker.currentWidget after the user responds to the prompt.
If the active widget changes between the click and the confirmation, the handler resolves to the newly focused document. The server signature is then written to disk for the wrong notebook, and all of its cells are flagged as trusted. Subsequent command-linker buttons in that incorrectly trusted document execute without prompting the user.
Root Cause
The root cause is reliance on mutable UI state (tracker.currentWidget) at prompt resolution time rather than at prompt invocation time. The command handlers in packages/markdownviewer-extension/src/index.ts and packages/notebook-extension/src/index.ts did not bind the originating document to the dialog's resolution callback. The fix introduces CommandLinker and DOMUtils to deterministically map the clicked DOM element back to its originating widget before dialog resolution.
Attack Vector
Exploitation requires user interaction and favorable timing, which is reflected in the high attack complexity. An attacker crafts or compromises a Markdown document or notebook containing a trust command link. The attacker then induces the user to click the link while another untrusted document (controlled by the attacker) is open and can gain focus before the user clicks Trust. Focus can shift through legitimate UI events, scripted content behavior, or multi-document layouts. If timing succeeds, the attacker's chosen document is trusted, enabling command execution without further prompting.
// Security patch in packages/apputils/src/commandlinker.ts
// Fix for GHSA-jwrc-gm9j-263p
import { IDisposable } from '@lumino/disposable';
import { ElementDataset } from '@lumino/virtualdom';
import { Dialog } from './dialog';
+import { DOMUtils } from './domutils';
import { showCommandLinkerTrustDialog } from './commandlinkertrustdialog';
Source: JupyterLab Commit 0fc18ab
// Security patch in packages/markdownviewer-extension/src/index.ts
// Fix for GHSA-jwrc-gm9j-263p
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { ILayoutRestorer } from '@jupyterlab/application';
-import { Clipboard, ISanitizer, WidgetTracker } from '@jupyterlab/apputils';
+import {
+ Clipboard,
+ CommandLinker,
+ ISanitizer,
+ WidgetTracker
+} from '@jupyterlab/apputils';
import { PathExt } from '@jupyterlab/coreutils';
import { ISearchProviderRegistry } from '@jupyterlab/documentsearch';
import type { MarkdownDocument } from '@jupyterlab/markdownviewer';
Source: JupyterLab Commit b64bc88
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-102832
Indicators of Compromise
- Jupyter notebooks that contain a valid server trust signature but were never explicitly trusted by a user, visible as unexpected signature entries in the nbsignatures.db database on the Jupyter server.
- Notebooks modified or auto-saved immediately after a user accepted a trust prompt in a different file during the same session.
- Unexpected execution of command-linker buttons in notebooks the user does not recall trusting.
Detection Strategies
- Inventory running JupyterLab, Jupyter Notebook, and JupyterLite deployments and compare installed versions against the fixed releases 4.5.11 and 4.6.4.
- Monitor Jupyter server logs for trust operations that correlate with rapid widget focus changes in the client.
- Audit the nbsignatures.db SQLite database for signature entries that lack corresponding user audit events.
Monitoring Recommendations
- Track package metadata on multi-tenant Jupyter hosts and JupyterHub deployments to confirm all users receive the patched version.
- Alert on unexpected modifications to notebook files containing executable cells shortly after client session activity.
- Review browser or desktop telemetry for repeated navigation to Markdown documents hosting trust command links from untrusted sources.
How to Mitigate CVE-2026-102832
Immediate Actions Required
- Upgrade JupyterLab to version 4.5.11 or 4.6.4, which contain the fix for GHSA-jwrc-gm9j-263p.
- Update any downstream distributions that bundle JupyterLab, including affected Jupyter Notebook and JupyterLite releases, to versions that incorporate the patched JupyterLab.
- Advise users to avoid switching between documents while a trust confirmation dialog is open.
Patch Information
The maintainers released fixes in JupyterLab Release v4.5.11 and JupyterLab Release v4.6.4. The patches are implemented across commits 0fc18ab, b64bc88, and f7e5f98. Full details are documented in the JupyterLab Security Advisory GHSA-jwrc-gm9j-263p. The fix captures the originating widget via CommandLinker and DOMUtils so the trust dialog resolves against the correct document.
Workarounds
- Open only one notebook or Markdown document at a time when interacting with trust prompts until the patch is applied.
- Do not open untrusted Markdown documents or notebooks from unknown sources in shared JupyterLab sessions.
- Restrict file-sharing permissions on multi-user Jupyter deployments to limit exposure to attacker-controlled documents.
# Upgrade JupyterLab to a patched release
pip install --upgrade "jupyterlab>=4.6.4"
# Or, for the 4.5.x branch
pip install --upgrade "jupyterlab>=4.5.11,<4.6"
# Verify installed version
jupyter lab --version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

