Advisory

PYSEC-2026-2535

Also known as: BIT-jupyter-base-notebook-2024-22420, BIT-jupyter-notebook-2024-22420, BIT-jupyterlab-2024-22420, CVE-2024-22420, GHSA-4m77-cmpx-vjc4, PYSEC-2026-1707

Summary

JupyterLab vulnerable to SXSS in Markdown Preview

Details

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Dates

Published
2026-07-13 14:20 UTC
Modified
2026-07-13 16:43 UTC

Affected packages and fixes

jupyterlab

PyPI · All systems

Affected

  • introduced 4.0.0, fixed 4.0.11 (ecosystem)

Fixed versions

4.0.11

Fix

  • Fixed version 4.0.11
    pip install --upgrade jupyterlab==4.0.11

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences