cve.bz

CVE-2026-102831 jupyterlab: Cross-site Scripting

8.1 highEPSS 0.2%Fix available

High (8.1) in jupyterlab. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in jupyterlab 4.5.11, 4.6.4.

On this page
JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook Architecture. From JupyterLab 4.5.0 until 4.5.11 and 4.6.4, from Notebook 7.5.0 until 7.6.3, and from JupyterLite Core 0.7.0 until 0.8.4, the system clipboard cell-paste path accepts attacker-controlled cell JSON without clearing metadata.trusted. When useSystemClipboardForCells is active and pasteCodeCellsWithoutOutput is disabled, a pasted code cell can mark HTML output as trusted, bypass output sanitization, and execute script in the authenticated JupyterLab origin without executing the cell. Markdown and raw cells are not affected because their output is sanitized. This issue is fixed in JupyterLab 4.5.11 and 4.6.4, Notebook 7.6.3, and JupyterLite Core 0.8.4.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-17. 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-10-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-345 Insufficient Verification of Data Authenticity
OWASP Top 10
A05:2025 Injection, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • jupyterlab (PyPI): fixed in 4.6.4, 4.5.11
  • notebook (PyPI): fixed in 7.6.3
  • jupyterlite (PyPI): fixed in 0.8.4
  • jupyterlite-core (PyPI): fixed in 0.8.4
  • openSUSE: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-102831 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102831?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102831?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-102831 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 CNA's record in the CVE List.

ProductAffected
jupyterlab>= 4.5.0, < 4.5.11
jupyterlab>= 4.6.0, < 4.6.4
jupyterlab notebook>= 7.5.0, < 7.6.3
jupyterlab jupyterlite-core>= 0.7.0, < 0.8.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6966-vjj6-99xvPyPIjupyterlab>=4.6.0 <4.6.44.6.4
GHSA-6966-vjj6-99xvPyPIjupyterlab>=4.5.0 <4.5.114.5.11
GHSA-6966-vjj6-99xvPyPInotebook>=7.5.0 <7.6.37.6.3
GHSA-6966-vjj6-99xvPyPIjupyterlite>=0.7.0 <0.8.40.8.4
GHSA-6966-vjj6-99xvPyPIjupyterlite-core>=0.7.0 <0.8.40.8.4
PYSEC-2026-4057PyPIjupyterlab>=4.5.0 <4.5.11
>=4.6.0 <4.6.4
4.5.11, 4.6.4
PYSEC-2026-4058PyPIjupyterlite>=0.7.0 <0.8.40.8.4
PYSEC-2026-4060PyPIjupyterlite-core>=0.7.0 <0.8.40.8.4
PYSEC-2026-4112PyPInotebook>=7.5.0 <7.6.37.6.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jupyter-notebookno fix listedDEBIAN-CVE-2026-102831
Ubuntu18.04:LTS, 20.04:LTS, Pro:22.04:LTS and 1 morejupyter-notebookno fix listedUBUNTU-CVE-2026-102831
Ubuntu26.04:LTS, 26.10jupyterlab, jupyter-notebookno fix listedUBUNTU-CVE-2026-102831
openSUSETumbleweedpython-jupyterlab4.5.11-1.1openSUSE-SU-2026:11945-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An IMPORTANT severity cross-site scripting (XSS) flaw was found in JupyterLab, which Red Hat ships within Red Hat OpenShift AI (RHOAI) and Migration Toolkit for Applications offerings. When the useSystemClipboardForCells setting is enabled and pasteCodeCellsWithoutOutput is disabled (the default), the system clipboard cell-paste path accepts attacker-controlled cell JSON without clearing metadata.trusted. A pasted code cell can therefore mark its HTML output as trusted, bypass output sanitization, and execute attacker-supplied script in the authenticated JupyterLab origin as soon as the cell is pasted, without the user executing it. Running in the victim's session, the script can call the Jupyter Server REST API as that user, reading and writing any file under the server root, starting a kernel and running code in it, and opening a terminal where terminals are enabled. A remote attacker needs no JupyterLab account and no access to the server; exploitation requires enticing a user to copy malicious content and paste it into JupyterLab. Markdown and raw cells are not affected because their output is always sanitized. Red Hat's CVSS 3.1 score of 8.1 (IMPORTANT) matches the upstream score and reflects JupyterLab 4.5.0 and 4.5.1, where the system clipboard path is always active; from 4.5.2 the useSystemClipboardForCells setting is off by default, which lowers the practical attack complexity for deployments that keep that default. JupyterLab releases prior to 4.5.0, such as those bundled in some Red Hat OpenShift AI images, are not affected because the vulnerable system clipboard paste path was introduced in 4.5.0. This issue is delegated to the responsible Red Hat product teams and a fix is being pursued.

Red Hat's mitigation

Upstream provides fixed releases (JupyterLab 4.5.11 and 4.6.4, Notebook 7.6.3, and JupyterLite Core 0.8.4), and upgrading to a release containing the fix is the recommended resolution. For deployments that cannot immediately upgrade, the upstream advisory documents the following workarounds:

On JupyterLab 4.5.2 and later, disable the system clipboard for cells (it is off by default on these versions). This can be confirmed under Settings, Notebook, or set in the raw settings:

{

"@jupyterlab/notebook-extension:tracker": {

"useSystemClipboardForCells": false

}

}

With this setting off, cell copy and paste use JupyterLab's in-application clipboard, which never leaves the page; the cost is that cells can no longer be copied between browser tabs or windows.

Alternatively, pasting cells without their outputs also stops the script from running, at the cost of discarding outputs on every paste:

{

"@jupyterlab/notebook-extension:tracker": {

"pasteCodeCellsWithoutOutput": true

}

}

On JupyterLab 4.5.0 and 4.5.1 there is no configuration opt-out, as every paste reads the system clipboard; upgrading is highly recommended for those versions.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-feature-server-rhel9:1792148523Fixed 2026-10-21RHSA-2026:87410
Red Hat OpenShift AI 3.4rhoai/odh-feature-server-rhel9:1791863220Fixed 2026-10-19RHSA-2026:84734
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch210-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch210-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-rocm64-torch291-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Affected
2 more in the JSON and on Red Hat's page.

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

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. More on the page of CWE-345 (12).

References

Check your stackJSON