JupyterLab's command linker attributes in HTML enable one-click command execution from untrusted content
CVE-2026-42557 · GHSA-mqcg-5x36-vfcg · published 2026-05-06 · updated 2026-06-09
- Severity
- High
- CVSS score
- 9.6
- Chance of exploitation (EPSS)
- 0.49%
- Fixed in
- 4.5.7
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
The impact described above assumes a plain JupyterLab/Notebook installation. In environments with frontend extensions that contribute additional commands the attack surface is increased by the functionality covered by these commands.
Upgrade jupyterlab to 4.5.7 or later, and notebook to 7.5.6 or later.
JupyterLab 4.5.7
No workarounds are available for end-users. Downstream applications inheriting from JupyterFrontEnd or JupyterLab can effectively disable the CommandLinker by passing option in the initialization options.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterlab | PyPI | <= 4.5.6 | 4.5.7 |
| notebook | PyPI | >= 7.0.0, <= 7.5.5 | 7.5.6 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- CriticalImproper Input Validation in Jupyter Notebookipython, notebook
- HighJupyterLab: Cross-site scripting (XSS) in JupyterLab via notebook cells pasted from the system clipboardjupyterlab, jupyterlab, notebook
- HighJupyterLab: Image viewer allows XSS when opening malicious image in new browser tabjupyterlab, jupyterlab
- HighJupyterLab: Cross-site scripting (XSS) via crafted settings file (`overrides.json`)jupyterlab, jupyterlab
- HighJupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST requestjupyterlab
- HighJupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSSjupyterlab, notebook
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.