cve.bz

CVE-2026-42557 jupyter: Cross-site Scripting

8.6 highEPSS 0.5%Fix available

High (8.6) in jupyter. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in jupyterlab 4.5.7.

On this page
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.

Severity

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

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42557 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42557?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42557?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42557 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jupyter:jupyterlabbefore 4.5.7
jupyter:notebookfrom 7.0.0 before 7.5.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mqcg-5x36-vfcgPyPIjupyterlab<4.5.74.5.7
GHSA-mqcg-5x36-vfcgPyPInotebook>=7.0.0 <7.5.67.5.6
PYSEC-2026-2537PyPIjupyterlab<4.5.74.5.7
PYSEC-2026-2681PyPInotebook>=7.0.0 <7.5.67.5.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13jupyterlabno fix listedDEBIAN-CVE-2026-42557
Debian14jupyterlab4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3DEBIAN-CVE-2026-42557
Ubuntu25.10, 26.04:LTS, 26.10jupyterlabno fix listedUBUNTU-CVE-2026-42557
openSUSETumbleweedpython-jupyterlab4.5.7-1.1openSUSE-SU-2026:10748-1
openSUSETumbleweedpython-notebook7.5.6-1.1openSUSE-SU-2026:10749-1
Alpinev3.24jupyter-notebook7.5.6-r0ALPINE-CVE-2026-42557

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important vulnerability in JupyterLab allows arbitrary code execution through a deceptive button embedded in a notebook's HTML output. When a user clicks this specially crafted button, the CommandLinker component executes unauthorized JupyterLab commands, bypassing security validation. This can lead to compromise of the user's environment, including data loss or denial of service, particularly in Red Hat products utilizing JupyterLab such as Migration Toolkit for Applications and Red Hat OpenShift AI. Exploitation requires user interaction.

Red Hat's mitigation

Users should avoid opening or interacting with JupyterLab notebooks from untrusted sources. Exercise caution and verify the origin of any notebook before clicking buttons within its output, as this action could lead to the execution of arbitrary commands.

ProductPackageStateAdvisory
Red Hat Migration Toolkit for Applications 8.2mta/mta-solution-server-rhel9:1784109883Fixed 2026-07-21RHSA-2026:43038
Red Hat OpenShift AI 3.4rhoai/odh-th06-cpu-torch210-py312-rhel9:1787076778Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1787074331Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1787073913Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1787074078Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1787073929Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1787073605Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1787073546Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1787073717Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1787073713Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1787073593Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42557.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON