# CVE-2024-22420: PYSEC-2026-2535 - JupyterLab vulnerable to SXSS in Markdown Preview

Source: https://junglewise.ai/threats/cve-2024-22420-jupyterlab-vulnerable-to-sxss-in-markdown-preview  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-13  
License: CC BY 4.0 with a link back

CVE-2024-22420 · Severity: low · CVSS 3.1 · Published 2026-07-13

JupyterLab vulnerable to SXSS in Markdown Preview

Technologies: [jupyterlab (PyPI)](https://junglewise.ai/threats/technologies/pypi-jupyterlab), [notebook (PyPI)](https://junglewise.ai/threats/technologies/pypi-notebook). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-22420 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-22420 being exploited in the wild.

**How severe is CVE-2024-22420?** Low severity, with a CVSS score of 3.1, published 13 July 2026.

**Which products and versions are affected?** jupyterlab (PyPI) ECOSYSTEM:introduced=4.0.0,fixed=4.0.11; notebook (PyPI) ECOSYSTEM:introduced=7.0.0,fixed=7.0.7.

**Is there a fix for CVE-2024-22420?** Yes. jupyterlab (PyPI): upgrade to 4.0.11 or later; notebook (PyPI): upgrade to 7.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-22420?** Check whether you run jupyterlab (PyPI) or notebook (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- jupyterlab (PyPI): upgrade to 4.0.11 or later

  ```sh
  pip install "jupyterlab>=4.0.11"
  ```

- notebook (PyPI): upgrade to 7.0.7 or later

  ```sh
  pip install "notebook>=7.0.7"
  ```


## Affected products

- jupyterlab (PyPI) ECOSYSTEM:introduced=4.0.0,fixed=4.0.11
- notebook (PyPI) ECOSYSTEM:introduced=7.0.0,fixed=7.0.7

## Identifiers

- CVE-2024-22420
- GHSA-4m77-cmpx-vjc4
- PYSEC-2026-1707
- PYSEC-2026-2535

## Related threats

- [JupyterLab command link trust prompt marks wrong document](https://junglewise.ai/threats/cve-2026-102832-jupyterlab-command-link-trust-prompt-in-jupyterlab-can-trust-a)
- [JupyterLab PyPI Extension Manager command injection in uninstall](https://junglewise.ai/threats/cve-2026-102904-jupyterlab-is-an-extensible-environment-for-interactive-and)
- [JupyterLab HTML output sanitization bypass via clipboard paste](https://junglewise.ai/threats/cve-2026-102831-jupyterlab-is-an-extensible-environment-for-interactive-and)
- [JupyterLab code injection via Plural-Forms header in language pack](https://junglewise.ai/threats/cve-2026-102830-jupyterlab-is-an-extensible-environment-for-interactive-and)
- [PYSEC-2026-3671 - JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab](https://junglewise.ai/threats/cve-2026-73415-jupyterlab-image-viewer-allows-xss-when-opening-malicious-image)
