Vulnerability · Published Aug 28, 2024 · Assigned by GitHub_M

CVE-2024-43805HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering

High 7.6

In plain English

A high-severity cross-site scripting in jupyterlab from jupyterlab. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.6High
Exploit odds (30 days)0.4%top 65.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13jupyterlab4.0.11+ds1+~cs11.25.27-3DEBIAN-CVE-2024-43805
Debian:14jupyterlab4.0.11+ds1+~cs11.25.27-3DEBIAN-CVE-2024-43805
PyPIjupyterlab3.6.8, 4.2.5PYSEC-2026-2536
PyPIjupyterlab3.6.8GHSA-9q39-rmj3-p4r2
PyPIjupyterlab4.2.5GHSA-9q39-rmj3-p4r2
PyPInotebook7.2.2PYSEC-2026-1481
PyPInotebook7.2.2GHSA-9q39-rmj3-p4r2
Ubuntu:25.10jupyterlabno fix listedUBUNTU-CVE-2024-43805
Ubuntu:26.04:LTSjupyterlabno fix listedUBUNTU-CVE-2024-43805
Ubuntu:26.10jupyterlabno fix listedUBUNTU-CVE-2024-43805

Affected products (as reported)

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

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L

References