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

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-05-06T21:43:44.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-mqcg-5x36-vfcg, BIT-JUPYTER-BASE-NOTEBOOK-2026-42557, BIT-JUPYTER-NOTEBOOK-2026-42557, BIT-JUPYTERLAB-2026-42557, PYSEC-2026-2537, PYSEC-2026-2681
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyterlab jupyterlab: < 4.5.7
- jupyter notebook: >= 7.0.0, < 7.5.6; from 7.0.0 before 7.5.6
- mta/mta-solution-server-rhel9: no versions given (not affected: from 1784109883 before *)
- rhoai/odh-th06-cpu-torch210-py312-rhel9: no versions given (not affected: from 1787076778 before *)
- rhoai/odh-th06-cuda130-torch210-py312-rhel9: no versions given (not affected: from 1787077779 before *)
- rhoai/odh-th06-rocm64-torch291-py312-rhel9: no versions given (not affected: from 1787076481 before *)
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787074331 before *)
- rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9: no versions given (not affected: from 1787073913 before *)
- rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9: no versions given (not affected: from 1787074078 before *)
- rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9: no versions given (not affected: from 1787073929 before *)
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given (not affected: from 1787073605 before *)
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given (not affected: from 1787073546 before *)
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1787073717 before *)
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1787073713 before *)
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given (not affected: from 1787073593 before *)
- rhoai/odh-th06-cpu-torch291-py312-rhel9: no versions given
- rhoai/odh-th06-cuda130-torch291-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- jupyterlab (PyPI): before 4.5.7
- notebook (PyPI): from 7.0.0 before 7.5.6
- jupyter jupyterlab: before 4.5.7
- jupyter-base-notebook (Bitnami): from 7.0.0 before 7.5.6
- jupyter-notebook (Bitnami): from 7.0.0 before 7.5.6
- jupyterlab (Bitnami): before 4.5.7

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-mqcg-5x36-vfcg> (advisory, mitigation, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-42557> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2477086> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42557.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:43038> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:60520> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42557> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-42557](https://www.cve.org/CVERecord?id=CVE-2026-42557), CVE Terms of Use, modified 2026-08-28
- GitHub Advisory Database: [GHSA-mqcg-5x36-vfcg](https://github.com/advisories/GHSA-mqcg-5x36-vfcg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42557](https://nvd.nist.gov/vuln/detail/CVE-2026-42557), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2537](https://osv.dev/vulnerability/PYSEC-2026-2537), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-2681](https://osv.dev/vulnerability/PYSEC-2026-2681), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-JUPYTER-BASE-NOTEBOOK-2026-42557](https://osv.dev/vulnerability/BIT-JUPYTER-BASE-NOTEBOOK-2026-42557), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-JUPYTER-NOTEBOOK-2026-42557](https://osv.dev/vulnerability/BIT-JUPYTER-NOTEBOOK-2026-42557), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-JUPYTERLAB-2026-42557](https://osv.dev/vulnerability/BIT-JUPYTERLAB-2026-42557), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-42557 · Whole record: https://cve.day/CVE-2026-42557.json · Rebuilt by cve.day 2026-11-25T22:59:21.574Z
