Skip to main content

Jupyter Server CVE-2026-44727

| EUVDEUVD-2026-38347 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-06-18 https://github.com/jupyter-server/jupyter_server GHSA-fcw5-x6j4-ccmp
9.3
CVSS 4.0 · Vendor: https://github.com/jupyter-server/jupyter_server
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft notebook with HTML payload in display_data
  2. Delivery
    Place .ipynb in victim-reachable path
  3. Exploit
    Lure authenticated user to /nbconvert/html/<path>
  4. Execution
    Script runs in Jupyter origin (no sandbox CSP)
  5. Persist
    Exfiltrate auth token and call /api/kernels
  6. Impact
    Execute arbitrary code via kernel RCE

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) a target running jupyter_server <= 2.19.0 with the /nbconvert/html/ or /nbconvert/ POST endpoints reachable (default in JupyterLab, Notebook 7, and JupyterHub user servers), (2) the attacker's ability to place a malicious .ipynb file at a path the victim can browse - via shared filesystem, shared JupyterHub directory, collaboration tool, or social-engineered download - and (3) an authenticated victim user (the description states 'authenticated victim') who navigates to /nbconvert/html/<path> for the malicious notebook, which provides the UI:A requirement in the CVSS vector. Exploitation is LIMITED by: victim must be logged into Jupyter (active session cookie), victim must actively load the nbconvert URL rather than just open the notebook in the normal editor, and the workaround configuration (nbconvert_csp_sandbox=True after patch, or the monkey-patch snippet) fully neutralizes the issue.

Impact

The vendor-supplied CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H yields 9.3 (Critical) and is internally consistent with the description: network-reachable handler, low complexity, an authenticated user (PR:L) must click or navigate to an attacker-crafted notebook path (UI:A), and successful exploitation pivots to full kernel RCE which justifies high VC/VI/VA and the SC/SI/SA scope-change ratings since the kernel process is a separate trust boundary. EPSS and KEV data are not provided in the input, and no public exploit identified at time of analysis, so this currently reads as a high-impact-but-not-yet-weaponized issue rather than an active campaign target. Real-world risk is concentrated in multi-tenant or shared Jupyter deployments (JupyterHub, classroom environments, internal data-science platforms) where one user can upload or share a notebook another user will open; for single-user local Jupyter installs, the practical risk is much lower because the attacker would need to deliver a malicious .ipynb file to the victim and convince them to render it through /nbconvert/html/. Note the description says 'authenticated victim' yet CVSS uses PR:L - these are consistent if PR refers to the victim's session, but defenders should read it as 'victim must be logged in,' not 'attacker must be authenticated.'

Exploit ScenarioDerived

An attacker authors a Jupyter notebook whose display_data cell output contains an HTML payload with a script that reads document.cookie and calls /api/sessions or /api/kernels to spawn a kernel and execute shell commands. They share the .ipynb via a shared volume, JupyterHub team folder, Git pull request, or email attachment, then trick a logged-in user into clicking /nbconvert/html/<path-to-notebook>; on render, the script runs in the Jupyter origin, exfiltrates the auth token to an attacker domain, and runs arbitrary Python through the kernel as the victim's OS user. No public exploit identified at time of analysis, but the technique is mechanically straightforward given the public patch and description.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 22, 2026

Stored cross-site scripting in jupyter_server's nbconvert HTTP handlers allows a malicious notebook to execute JavaScript in the Jupyter origin, leading to session token theft, full /api/* control, and kernel remote code execution. The NbconvertFileHandler and NbconvertPostHandler render notebook-authored HTML without a CSP sandbox directive, and combined with HTMLExporter's non-sanitizing default, any display_data HTML payload runs with the victim's authority. No public exploit identified at time of analysis, but the CVSS 4.0 base score is 9.3 and a vendor patch is available in v2.20.0.

Earlier versions of this analysis (2)
v2 Jun 22, 2026 - 21:43 cvss changed CVSS 9.3

Stored cross-site scripting in Jupyter Server's nbconvert HTTP handlers (versions <= 2.19.0) allows an attacker who can plant a crafted notebook to execute JavaScript in the Jupyter origin when a victim renders it via /nbconvert/html/<path>, leading to token theft, full /api/* control, and kernel-level remote code execution. The root cause is a missing 'sandbox' directive in the Content-Security-Policy combined with HTMLExporter's non-sanitizing default. No public exploit identified at time of analysis, but the GitHub Security Advisory (GHSA-fcw5-x6j4-ccmp) and patch commit 6cbee8d are public.

v1 Jun 18, 2026 - 15:52

Stored cross-site scripting in jupyter_server's nbconvert HTTP handlers (versions <= 2.19.0) allows an attacker who can place a malicious notebook on a victim's Jupyter instance to execute JavaScript under the Jupyter origin when the victim opens /nbconvert/html/<path>, leading to session token theft, full /api/* authority, and kernel-level remote code execution. The flaw exists because NbconvertFileHandler and NbconvertPostHandler emit rendered notebook HTML without a sandbox Content-Security-Policy directive, while nbconvert.HTMLExporter does not sanitize HTML in display_data outputs. No public exploit identified at time of analysis, but the vendor advisory describes a clear exploitation path and the fix is straightforward to reverse-engineer.

RemediationAI

Vendor-released patch: upgrade jupyter_server to 2.20.0 or later (pip install --upgrade 'jupyter-server>=2.20.0'), which adds the 'sandbox allow-scripts' directive to the CSP on /nbconvert/ endpoints by default via the new ServerApp.nbconvert_csp_sandbox setting; the change is in commit 6cbee8d (https://github.com/jupyter-server/jupyter_server/commit/6cbee8d65e71abac851c4492fea987ad080580bd) and documented in advisory GHSA-fcw5-x6j4-ccmp. For containerized or read-only deployments where upgrading is impractical, the vendor-supplied workaround is to monkey-patch the handlers in jupyter_server_config.py by setting NbconvertFileHandler.content_security_policy and NbconvertPostHandler.content_security_policy to a property that appends '; sandbox allow-scripts' to the inherited CSP, which produces the same defense without modifying installed source. As a compensating control, operators of multi-user environments can also disable or proxy-strip the /nbconvert/html/ and /nbconvert/ POST endpoints at a reverse proxy (trade-off: users lose in-server HTML export and must download .ipynb files for local conversion), and should advise users not to open untrusted notebooks via nbconvert until patched.

Affected VersionsENISA

jupyter_server < 2.20

Affected Packages

pypi jupyter-server fix: 2.20, 2.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

jupyter_server is the Python backend that powers JupyterLab, Jupyter Notebook 7+, and many derivative data-science environments; the nbconvert handlers expose endpoints like /nbconvert/html/<path> that convert .ipynb files to HTML on the fly via nbconvert.HTMLExporter. CWE-79 (Improper Neutralization of Input During Web Page Generation) applies because the exporter does not sanitize HTML/JS embedded in display_data outputs, and the handlers serve the result under the Jupyter origin with a Content-Security-Policy that lacked the 'sandbox' directive - meaning any embedded script could read cookies (the Jupyter auth token), call /api/* endpoints, and reach the kernel-execution API. The fix introduces a new ServerApp.nbconvert_csp_sandbox boolean (default True) that appends 'sandbox allow-scripts' to the CSP for both NbconvertFileHandler and NbconvertPostHandler, confining rendered notebook JavaScript to a unique opaque origin. Affected package per CPE pkg:pip/jupyter-server covers versions <= 2.19.0.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/jupyter-server/jupyter_server) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.0 CRITICAL

Network-reachable handler with low complexity; victim must be authenticated to Jupyter (PR:L) and must navigate to the malicious nbconvert URL (UI:R); kernel RCE crosses a trust boundary so S:C with full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE CRITICAL
Red Hat 9.0 HIGH

Primary rating from Vendor (https://github.com/jupyter-server/jupyter_server).

CVSS VectorVendor: https://github.com/jupyter-server/jupyter_server

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

3
Analysis Updated
Jun 22, 2026 - 21:43 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 22, 2026 - 21:43 vuln.today
v2 - CVSS changed
CVSS changed
Jun 22, 2026 - 21:39 NVD
9.3 (CRITICAL)

DescriptionCVE.org

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 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)

Executive ViewAI

Why It Matters

Jupyter Server versions before 2.20.0 contain a vulnerability enabling attackers to steal user credentials and control server operations via malicious notebooks. No public exploit identified at time of analysis. Organizations using Jupyter for sensitive work require immediate patching to v2.20.0 to prevent credential theft and system compromise.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
High
core Python package behind JupyterLab/Notebook 7/JupyterHub, very widely deployed in data-science environments
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy