Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft notebook with HTML payload in display_data
-
DeliveryPlace .ipynb in victim-reachable path
-
ExploitLure authenticated user to /nbconvert/html/<path>
-
ExecutionScript runs in Jupyter origin (no sandbox CSP)
-
PersistExfiltrate auth token and call /api/kernels
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
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
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.
Primary rating from Vendor (https://github.com/jupyter-server/jupyter_server).
CVSS VectorVendor: https://github.com/jupyter-server/jupyter_server
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-38347
GHSA-fcw5-x6j4-ccmp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB