CVE-2026-44727

CVE-2026-44727 is a critical-severity cross-site scripting (XSS) vulnerability in jupyter-server (pip), affecting versions <= 2.19.0. It is fixed in 2.20.0.

Summary

The nbconvert HTTP handlers in jupyter_server render user-authored notebook HTML under the Jupyter origin without a sandbox directive in their Content-Security-Policy.

Combined with nbconvert.HTMLExporter's default non-sanitizing behavior, a notebook carrying an HTML payload in a display_data output triggers stored XSS with cookie access, full /api/* authority, and kernel RCE.

Workarounds

For deployments where editing the installed jupyter_server is impractical (containerized builds, read-only images), adding this to jupyter_server_config.py has the same effect as the patch above without touching source files:

import jupyter_server.nbconvert.handlers as _nb

def _csp(self):
    return super(type(self), self).content_security_policy + "; sandbox allow-scripts"

_nb.NbconvertFileHandler.content_security_policy = property(_csp)
_nb.NbconvertPostHandler.content_security_policy = property(_csp)

Impact

An authenticated victim who navigates to /nbconvert/html/<path> containing attacker-authored output can have their token exfiltrated to another domain because it is executed in the Jupyter origin.

Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.

Affected versions

jupyter-server (<= 2.19.0)

Security releases

jupyter-server → 2.20.0 (pip)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Fixed in v2.20.0, commit 6cbee8d

Frequently Asked Questions

  1. What is CVE-2026-44727? CVE-2026-44727 is a critical-severity cross-site scripting (XSS) vulnerability in jupyter-server (pip), affecting versions <= 2.19.0. It is fixed in 2.20.0. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
  2. Which versions of jupyter-server are affected by CVE-2026-44727? jupyter-server (pip) versions <= 2.19.0 is affected.
  3. Is there a fix for CVE-2026-44727? Yes. CVE-2026-44727 is fixed in 2.20.0. Upgrade to this version or later.
  4. Is CVE-2026-44727 exploitable, and should I be worried? Whether CVE-2026-44727 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2026-44727 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2026-44727? Upgrade jupyter-server to 2.20.0 or later.

Other vulnerabilities in jupyter-server

CVE-2026-44727CVE-2026-40934CVE-2026-40110CVE-2025-61669CVE-2023-49080

Stop the waste.
Protect your environment with Kodem.