CVE-2026-42557
HIGH 8.6CVSS 4.0JupyterLab's command linker attributes in HTML enable one-click command execution from untrusted content
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.
- Published
- 13 May 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-jupyter-base-notebook-2026-42557BIT-jupyter-notebook-2026-42557BIT-jupyterlab-2026-42557GHSA-mqcg-5x36-vfcgPYSEC-2026-2537PYSEC-2026-2681
- Sources
- NVDJSONOSV GHSA-mqcg-5x36-vfcgJSONOSV PYSEC-2026-2537JSONOSV PYSEC-2026-2681JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.6 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
< 4.5.7 | 4.5.7 |
| NVD | jupyter | notebookcpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.5.6 | 7.5.6 |
| OSV | PyPI | jupyterlab | < 4.5.7 | 4.5.7 |
| OSV | PyPI | notebook | >= 7.0.0, < 7.5.6 | 7.5.6 |
References
- https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-mqcg-5x36-vfcg · Mitigation, Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:43038
- https://access.redhat.com/errata/RHSA-2026:60520
- https://access.redhat.com/security/cve/CVE-2026-42557
- https://bugzilla.redhat.com/show_bug.cgi?id=2477086
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42557.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-42557 · ADVISORY
- https://github.com/jupyterlab/jupyterlab · PACKAGE
- https://jupyterlab.readthedocs.io/en/latest/user/commands.html#commands-in-markdown-files · WEB
- https://pypi.org/project/jupyterlab · PACKAGE
- https://github.com/advisories/GHSA-mqcg-5x36-vfcg · ADVISORY
- https://pypi.org/project/notebook · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2026)