Vulnerability · Published May 13, 2026 · Assigned by GitHub_M

CVE-2026-42557jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content

High 8.8

In plain English

A high-severity cross-site scripting in notebook from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.5%top 57.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

jupyterlab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook Architecture. Prior to 4.5.7, JupyterLab's HTML sanitizer allowlists data-commandlinker-command and data-commandlinker-args on button elements, while CommandLinker listens for all click events on document.body and executes the named command without checking whether the element came from trusted JupyterLab UI. A notebook with a pre-saved HTML cell output containing a deceptive button can trigger arbitrary JupyterLab commands - including arbitrary code execution - on a single user click, without any code being submitted for execution by the user. This vulnerability is fixed in 4.5.7.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24jupyter-notebook7.5.6-r0ALPINE-CVE-2026-42557
Debian:13jupyterlabno fix listedDEBIAN-CVE-2026-42557
Debian:14jupyterlab4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3DEBIAN-CVE-2026-42557
PyPIjupyterlab4.5.7GHSA-mqcg-5x36-vfcg
PyPIjupyterlab4.5.7PYSEC-2026-2537
PyPInotebook7.5.6GHSA-mqcg-5x36-vfcg
PyPInotebook7.5.6PYSEC-2026-2681
Ubuntu:25.10jupyterlabno fix listedUBUNTU-CVE-2026-42557
Ubuntu:26.04:LTSjupyterlabno fix listedUBUNTU-CVE-2026-42557
Ubuntu:26.10jupyterlabno fix listedUBUNTU-CVE-2026-42557

Affected products (as reported)

VendorProductVersions
jupyterlab jupyterlab < 4.5.7
jupyter notebook >= 7.0.0, < 7.5.6

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References