PyPI: jupyterlab

CVE-2024-22420

Safety vulnerability ID: SFTY-20240119-55967

Safety legacy ID: pyup.io-64587

CVE-2024-22420 describes a vulnerability in JupyterLab, where user interaction with a malicious notebook or Markdown file enables an attacker to access and act with the same permissions as the user. The flaw lies in the table of contents plugin. JupyterLab v4.0.11 includes a patch for this issue. Users can manually disable the plugin as a workaround. https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4m77-cmpx-vjc4

Created at: May 22, 2026Updated at: May 22, 2026

Overview

JupyterLab vulnerable to SXSS in Markdown Preview

Advisory

CVE-2024-22420 describes a vulnerability in JupyterLab, where user interaction with a malicious notebook or Markdown file enables an attacker to access and act with the same permissions as the user. The flaw lies in the table of contents plugin. JupyterLab v4.0.11 includes a patch for this issue. Users can manually disable the plugin as a workaround. https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4m77-cmpx-vjc4

Affected Package

Affecting jupyterlab package, versions
>=4.0.0,<=4.0.10

Also affects

---

How to Fix

Upgrade
jupyterlab
to
4.0.11
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more