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

High 8.6 Published Updated

Attackers can execute arbitrary JupyterLab commands via malicious HTML buttons in notebook outputs, leading to code execution upon user click.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-42557?

CVE-2026-42557 is a high-severity cross-site scripting vulnerability in jupyterlab, published on 13 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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.

Weakness: CWE-79

Which versions are affected by CVE-2026-42557?

9 open source packages ship an affected version, including jupyterlab, jupyter-base-notebook and jupyter-notebook. It affects 2 products.

PackageAffectedFixed in
jupyterlab BitnamiAll versions4.5.7
jupyterlab PyPIAll versions4.5.7
jupyterlab PyPIAll versions4.5.7
jupyterlab PyPIAll versions4.5.7
jupyter-base-notebook BitnamiFrom 7.0.07.5.6
jupyter-notebook BitnamiFrom 7.0.07.5.6
3 more packages
notebook PyPIFrom 7.0.07.5.6
notebook PyPIFrom 7.0.07.5.6
notebook PyPIFrom 7.0.07.5.6

Products include Jupyter Jupyterlab, Jupyter Notebook.

How do I fix CVE-2026-42557?

Upgrade jupyterlab to 4.5.7 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-42557 being exploited?

There is no known exploitation of CVE-2026-42557 in the wild and no public exploit code.

Sources

Also known as BIT-jupyter-base-notebook-2026-42557, BIT-jupyter-notebook-2026-42557, BIT-jupyterlab-2026-42557, CLEANSTART-2026-AQ42255, CLEANSTART-2026-CB04703, DEBIAN-CVE-2026-42557 and 4 more.

Is CVE-2026-42557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free