CVE-2024-22420
JSON

6.5medium

Stored cross site scripting in Markdown Preview in JupyterLab

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4m77-cmpx-vjc4BIT-JUPYTER-BASE-NOTEBOOK-2024-22420BIT-JUPYTER-NOTEBOOK-2024-22420BIT-JUPYTERLAB-2024-22420PYSEC-2026-1707PYSEC-2026-2535

Description

JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture. This vulnerability depends on user interaction by opening a malicious 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 version 4.0.11 has been patched. Users are advised to upgrade. Users unable to upgrade should disable the table of contents extension.

Affected

Product or packageVersionsReported by
jupyterlab jupyterlab>=4.0.0, < 4.0.11CVE List
jupyterlab (PyPI)from 4.0.0 before 4.0.11GitHub Advisory Database, PyPA Advisory Database
notebook (PyPI)from 7.0.0 before 7.0.7GitHub Advisory Database, PyPA Advisory Database
jupyter jupyterlabfrom 4.0.0 before 4.0.11NVD
jupyter notebookfrom 7.0.0 before 7.0.7NVD
fedoraproject fedora39NVD
jupyter-base-notebook (Bitnami)from 7.0.0Bitnami Vulnerability Database
jupyter-notebook (Bitnami)from 7.0.0 before 7.0.7Bitnami Vulnerability Database
jupyterlab (Bitnami)from 4.0.0 before 4.2.4Bitnami Vulnerability Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture. This vulnerability depends on user interaction by opening a malicious 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 version 4.0.11 has been patched. Users are advised to upgrade. Users unable to upgrade should disable the table of contents extension.

GitHub Advisory Database
Impact

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

Patches

JupyterLab v4.0.11 was patched.

Workarounds

Users can either disable the table of contents extension by running:

jupyter labextension disable @jupyterlab/toc-extension:registry
References

Vulnerability reported via the bug bounty program sponsored by the European Commission and hosted on the Intigriti platform.

NVD (es)

JupyterLab es un entorno extensible para informática interactiva y reproducible, basado en Jupyter Notebook y Architecture. Esta vulnerabilidad depende de la interacción del usuario al abrir un archivo Markdown malicioso utilizando la función de vista previa de JupyterLab. Un usuario malintencionado puede acceder a cualquier dato a los que tenga acceso el usuario atacado, así como realizar solicitudes arbitrarias actuando como el usuario atacado. Se ha parcheado la versión 4.0.11 de JupyterLab. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben desactivar la extensión de la tabla de contenido.

References

https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4m77-cmpx-vjc4advisory, vendor-advisory, web
https://github.com/jupyterlab/jupyterlab/commit/e1b3aabab603878e46add445a3114e838411d2dffix, patch, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2H/advisory, mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2024-22420advisory, web
https://github.com/jupyterlab/jupyterlab/commit/dda0033cd49449572d077bbecd33b18d8d05f48aweb
https://github.com/jupyterlab/jupyterlabpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2Hweb
https://pypi.org/project/notebookpackage
https://github.com/advisories/GHSA-4m77-cmpx-vjc4advisory
https://pypi.org/project/jupyterlabpackage

Sources

SourceRecordLicence
CVE ListCVE-2024-22420 changed 2025-05-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-4m77-cmpx-vjc4 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-22420 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1707 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-2535 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-JUPYTER-BASE-NOTEBOOK-2024-22420 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-JUPYTER-NOTEBOOK-2024-22420 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-JUPYTERLAB-2024-22420 changed 2026-09-08Apache-2.0