Skip to content
OpenAdvisories
High · 7.6 CVE-2024-43805 BIT-jupyter-base-notebook-2024-43805BIT-jupyter-notebook-2024-43805BIT-jupyterlab-2024-43805EUVD-2024-2550GHSA-9q39-rmj3-p4r2PYSEC-2026-1481PYSEC-2026-2536

HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering

Published Aug 28, 2024 · Updated Aug 28, 2024 · Assigned by GitHub_M

Description

jupyterlab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook Architecture. This vulnerability depends on user interaction by opening a malicious notebook with Markdown cells, or Markdown file using JupyterLab preview feature. A malicious user can access any data that the attacked user has access to as well as perform arbitrary requests acting as the attacked user. JupyterLab v3.6.8, v4.2.5 and Jupyter Notebook v7.2.2 have been patched to resolve this issue. Users are advised to upgrade. There is no workaround for the underlying DOM Clobbering susceptibility. However, select plugins can be disabled on deployments which cannot update in a timely fashion to minimise the risk. These are: 1. `@jupyterlab/mathjax-extension:plugin` - users will loose ability to preview mathematical equations. 2. `@jupyterlab/markdownviewer-extension:plugin` - users will loose ability to open Markdown previews. 3. `@jupyterlab/mathjax2-extension:plugin` (if installed with optional `jupyterlab-mathjax2` package) - an older version of the mathjax plugin for JupyterLab 4.x. To disable these extensions run: ```jupyter labextension disable @jupyterlab/markdownviewer-extension:plugin && jupyter labextension disable @jupyterlab/mathjax-extension:plugin && jupyter labextension disable @jupyterlab/mathjax2-extension:plugin ``` in bash.

Affected products

VendorProductAffectedFixed
jupyterlab jupyterlab notebook: >= 7.0.0, <= 7.2.2, jupyterlab: >= 4.0.0, < 4.2.5, jupyterlab: < 3.6.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jupyterlab 4.0.11+ds1+~cs11.25.27-3 —
Debian 13 jupyterlab 4.0.11+ds1+~cs11.25.27-3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 jupyterlab No fix yet —
Ubuntu 25.10 jupyterlab No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP6 python-jupyterlab 2.2.10-bp156.3.3.1 openSUSE-SU-2024:0352-1
SUSE Package Hub 15 SP5 python-jupyterlab 2.2.10-bp156.3.3.1 openSUSE-SU-2024:0352-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 python-jupyterlab 2.2.10-bp156.3.3.1 openSUSE-SU-2024:0352-1
openSUSE Leap 15.5 python-jupyterlab 2.2.10-bp156.3.3.1 openSUSE-SU-2024:0352-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI jupyterlab < 3.6.8 3.6.8 GHSA-9q39-rmj3-p4r2
PyPI jupyterlab >= 4.0.0, < 4.2.5 4.2.5 GHSA-9q39-rmj3-p4r2
PyPI jupyterlab < 3.6.8 · >= 4.0.0, < 4.2.5 3.6.8, 4.2.5 PYSEC-2026-2536
PyPI notebook >= 7.0.0, < 7.2.2 7.2.2 GHSA-9q39-rmj3-p4r2

Advisories 1

References