Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-44727

Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP
Back to all
CVE

CVE-2026-44727

Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP

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.

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.

Patches

Fixed in v2.20.0, commit 6cbee8d

Workarounds

For deployments where editing the installed jupyterserver is impractical (containerized builds, read-only images), adding this to jupyterserver_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)

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.3
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
C
H
U
8.2
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/jupyter-server/jupyterserver/security/advisories/GHSA-fcw5-x6j4-ccmp, https://nvd.nist.gov/vuln/detail/CVE-2026-44727, https://github.com/jupyter-server/jupyterserver/commit/6cbee8d65e71abac851c4492fea987ad080580bd, https://access.redhat.com/security/cve/CVE-2026-44727, https://bugzilla.redhat.com/showbug.cgi?id=2491516, https://github.com/advisories/GHSA-fcw5-x6j4-ccmp, https://github.com/jupyter-server/jupyterserver, https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-366.yaml, https://pypi.org/project/jupyter-server, https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44727.json

Severity

8.2

CVSS Score
0
10

Basic Information

Base CVSS
8.2
EPSS Probability
0.00227%
EPSS Percentile
0.13372%
Introduced Version
0,0.0.1,4.0.0,3.0.0,2.0.0
Fix Available
2.20.0,7.0.0a1,4.0.0b1,2.21.0-r6

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading