CVE-2026-42557 Details
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.
A vulnerability in JupyterLab prior to version 4.5.7 allows for arbitrary command execution through deceptive buttons in HTML cell outputs. The issue arises because JupyterLab's HTML sanitizer improperly allows certain attributes on button elements. This enables CommandLinker to execute commands without verifying the trustworthiness of the source. As a result, a notebook containing a manipulated button can trigger JupyterLab commands, including arbitrary code execution, with a single click from the user. This exploitation occurs without any code being actively submitted for execution.
Users can update to JupyterLab version 4.5.7 or later to address this vulnerability. For downstream applications inheriting from JupyterFrontEnd or JupyterLab, the CommandLinker can be disabled by passing a specific option during initialization. Additionally, the patched version includes a toggle to disable the command linker functionality altogether, which can be configured via the overrides.json file.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:43038 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:60520 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-42557 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2477086 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42557.json | redhat-SADP | |
| https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-mqcg-5x36-vfcg | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | redhat-SADP |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jupyter jupyterlab | < 4.5.7 |
CPE
Remediation
| |
| jupyter notebook | >= 7.0.0, < 7.5.6 |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Aug 28, 2026 | CVE Modified | [email protected] |
| Aug 28, 2026 | CVE Modified | redhat-SADP |
| Jul 22, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 2, 2026 | Initial Analysis | [email protected] |
| May 13, 2026 | New CVE Received | [email protected] |