CVE-2026-44727: Jupyter Server stored XSS in nbconvert handlers

CVE-2026-44727 · Severity: critical · CVSS 4 · Published 2026-06-22

Jupyter Server is the core engine that powers Jupyter web applications used for data science and research. A security flaw allows a malicious user to create a notebook that, when viewed by another user, can steal their login credentials or take full control of the server. This could lead to the theft of sensitive research data or unauthorized access to the underlying computing infrastructure.

Technologies: jupyter-server (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2026-44727 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-44727 being exploited in the wild.
How severe is CVE-2026-44727?
Critical severity, with a CVSS score of 4, published 22 June 2026.
Which products and versions are affected?
jupyter-server (PyPI) ECOSYSTEM:introduced=0,fixed=2.20.0.
Is there a fix for CVE-2026-44727?
Yes. jupyter-server (PyPI): upgrade to 2.20.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-44727 attacked?
It is attacked over the network, in a hosted service.
Am I affected by CVE-2026-44727?
Check whether you run jupyter-server (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

  • jupyter-server (PyPI): upgrade to 2.20.0 or later
    pip install "jupyter-server>=2.20.0"

Technical details

A stored cross-site scripting (XSS) vulnerability exists in the NbconvertFileHandler and NbconvertPostHandler components of jupyter_server. The root cause is the lack of a 'sandbox' directive in the Content-Security-Policy (CSP) when rendering user-authored notebook HTML, combined with nbconvert.HTMLExporter's default behavior of not sanitizing HTML payloads in display_data outputs. An authenticated attacker can craft a notebook with a malicious HTML payload; when a victim views this notebook via the /nbconvert/html/ path, the script executes within the Jupyter origin. This allows the attacker to access session cookies, interact with the full /api/* scope, and ultimately achieve remote code execution (RCE) via the Jupyter kernel. The issue is fixed in version 2.20.0.

Affected products

  • jupyter-server jupyter_server < 2.20.0

Identifiers

  • CVE-2026-44727
  • GHSA-fcw5-x6j4-ccmp
  • PYSEC-2026-366

Timeline

  • 2026-06-17: advisory: GitHub Security Advisory published
  • 2026-06-22: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.