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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | jupyterlab | 4.0.11+ds1+~cs11.25.27-3 | DEBIAN-CVE-2024-43805 |
| Debian:14 | jupyterlab | 4.0.11+ds1+~cs11.25.27-3 | DEBIAN-CVE-2024-43805 |
| PyPI | jupyterlab | 3.6.8, 4.2.5 | PYSEC-2026-2536 |
| PyPI | jupyterlab | 3.6.8 | GHSA-9q39-rmj3-p4r2 |
| PyPI | jupyterlab | 4.2.5 | GHSA-9q39-rmj3-p4r2 |
| PyPI | notebook | 7.2.2 | PYSEC-2026-1481 |
| PyPI | notebook | 7.2.2 | GHSA-9q39-rmj3-p4r2 |
| Ubuntu:25.10 | jupyterlab | no fix listed | UBUNTU-CVE-2024-43805 |
| Ubuntu:26.04:LTS | jupyterlab | no fix listed | UBUNTU-CVE-2024-43805 |
| Ubuntu:26.10 | jupyterlab | no fix listed | UBUNTU-CVE-2024-43805 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-9q39-rmj3-p4r2 x_refsource_CONFIRM