jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jupyterlab | jupyterlab | before 4.5.7 | 4.5.7 | Patch available | CNA |
| jupyterlab | notebook | 7.0.0 to before 7.5.6 | 7.5.6 | Patch available | CNA |
| — | jupyterlab (PyPI) | before 4.5.7 | 4.5.7 | Patch available | GHSA-mqcg-5x36-vfcg |
| — | notebook (PyPI) | 7.0.0 to before 7.5.6 | 7.5.6 | Patch available | GHSA-mqcg-5x36-vfcg |
- jupyterlab Vendorjupyterlab Affected before 4.5.7 Fixed in 4.5.7 Patch available CNA
- notebook Vendorjupyterlab Affected 7.0.0 to before 7.5.6 Fixed in 7.5.6 Patch available CNA
- jupyterlab (PyPI) Vendor— Affected before 4.5.7 Fixed in 4.5.7 Patch available GHSA-mqcg-5x36-vfcg
- notebook (PyPI) Vendor— Affected 7.0.0 to before 7.5.6 Fixed in 7.5.6 Patch available GHSA-mqcg-5x36-vfcg
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* | before 4.5.7 | Vulnerable | jupyterlab |
| cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* | 7.0.0 to before 7.5.6 | Vulnerable | jupyterlab |
- cpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* Versions before 4.5.7 Vulnerable ·jupyterlab
- cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* Versions 7.0.0 to before 7.5.6 Vulnerable ·jupyterlab
Remediation
- Fix · CNA jupyterlab (jupyterlab) Fixed in 4.5.7
- Fix · CNA notebook (jupyter) Fixed in 7.5.6
- Fix · GHSA-mqcg-5x36-vfcg jupyterlab (PyPI) Fixed in 4.5.7 Advisory →
- Fix · GHSA-mqcg-5x36-vfcg notebook (PyPI) Fixed in 7.5.6 Advisory →
Red Hat 2 advisories
- RHSA-2026:60520 Released 2026-08-27 · Red Hat rating CriticalRHOAI 3.4.4 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-automl-rhel9, registry.redhat.io/rhoai/odh-autorag-rhel9, registry.redhat.io/rhoai/odh-built-in-detector-rhel9 +47
- RHSA-2026:43038 Released 2026-07-21 · Red Hat rating CriticalMigration Toolkit for Applications
- Red Hat Migration Toolkit for Applications 8.2 registry.redhat.io/mta/mta-cli-rhel9, registry.redhat.io/mta/mta-solution-server-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat Migration Toolkit for Applications 8.2 | Fixed | RHSA-2026:43038 |
| Red Hat OpenShift AI 3.4 | Fixed | RHSA-2026:60520 |
Not affected: 3 products
- Red Hat Migration Toolkit for Applications 8.2
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 3.4
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42557
- 2026-10-03 Alias added: GHSA-mqcg-5x36-vfcg
- 2026-10-25 EPSS moved to the below the 50th percentile
- 2026-10-25 Priority changed: MEDIUM → LOW
- 2026-11-02 Priority changed: LOW → MEDIUM
References
More Jupyterlab vulnerabilities
- TI-2024-26623 Remote Code Execution (RCE) vulnerability in jupyterlab extension template `update-integration-tests` GitHub Action CVSS 3.1CRITICAL 10.0
- TI-2026-30579 Improper input validation in jupyterlab CVSS 3.1HIGH 8.8
- TI-2021-12463 JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form> CVSS 3.1CRITICAL 9.6
- TI-2024-14994 Potential authentication and CSRF tokens leak in JupyterLab CVSS 3.1HIGH 7.6
- TI-2024-29399 HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering CVSS 3.1HIGH 7.6
- TI-2024-14993 Stored cross site scripting in Markdown Preview in JupyterLab CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-42557 · CVE Program
- CVE-2026-42557 · NVD
- FIRST EPSS
- GHSA-mqcg-5x36-vfcg · GitHub Advisory Database · CC BY 4.0
- CVE-2026-42557 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences