Vulnerabilities in pkg:pypi/jupyter-server
PACKAGECVE-2026-44727 is a CRITICAL (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jupyter Server libraries in the PyPI ecosystem. The issue involves stored xss in `nbconvertfilehandler` / `nbconvertposthandler` via missing `sandbox` csp. Remediation is available by upgrading affected packages to version 2.20.0.
pkg:pypi/jupyter-server
Vulnerability advisories affecting package pkg:pypi/jupyter-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-fcw5-x6j4-ccmp | CVE-2026-44727 | CRITICAL | Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP |
| GHSA-5789-5fc7-67v3 | CVE-2026-35397 | HIGH | Jupyter Server: Path Traversal via incorrect startswith() root directory check allows access to sibling directories |
| GHSA-24qx-w28j-9m6p | CVE-2026-40110 | HIGH | Jupyter Server has a CORS Origin Validation Bypass via `re.match()` in `allow_origin_pat` |
| GHSA-v42x-x7jp-845h | CVE-2026-6657 | MODERATE | Duplicate Advisory: jupyter-server is vulnerable to CORS origin validation bypass when the `allow_origin_pat` configuration is used |
| GHSA-gf7q-q4j7-hp7c | CVE-2026-5422 | MODERATE | Duplicate Advisory: Jupyter Server vulnerable to Path Traversal via incorrect root directory boundary check in _get_os_path() |
| GHSA-5mrq-x3x5-8v8f | CVE-2026-40934 | HIGH | Jupyter Server's Authentication Cookies Remain Valid After Password Reset and Server Restart |
| GHSA-qh7q-6qm3-653w | CVE-2025-61669 | MODERATE | Jupyter Server has an open redirection vulnerability in `next` query parameter |
| GHSA-9f66-54xg-pc2c | CVE-2020-26275 | MODERATE | Jupyter Server open redirect vulnerability |
| GHSA-h56g-gq9v-vc8r | CVE-2023-49080 | MODERATE | jupyter-server errors include tracebacks with path information |
| GHSA-r726-vmfq-j9j3 | CVE-2023-39968 | MODERATE | Open Redirect Vulnerability in jupyter-server |
| GHSA-grfj-wjv9-4f9v | CVE-2020-26232 | MODERATE | Open redirect in Jupyter Server |
| GHSA-q874-g24w-4q9g | CVE-2022-29241 | HIGH | Jupyter server Token bruteforcing |
| GHSA-64x5-55rw-9974 | CVE-2023-40170 | MODERATE | cross-site inclusion (XSSI) of files in jupyter-server |
| GHSA-p737-p57g-4cpr | CVE-2022-24757 | HIGH | Insertion of Sensitive Information into Log File in Jupyter notebook |
CVE-2026-44727 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-44727
To remediate this vulnerability, upgrade all affected Jupyter Server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install jupyter-server>=2.20.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show jupyter-server
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-44727, inspect your installed packages using pip:
pip show jupyter-server
Analyze the terminal output to locate any version of Jupyter Server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.20.0), your application is affected.
Note: The pip show jupyter-server command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Jupyter Server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44727 Affected Jupyter Server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jupyter-server
|
PyPI |
< 2.20.0
|
2.20.0
|
References
Frequently Asked Questions
What is CVE-2026-44727?
Which Jupyter Server versions are affected?
What version fixes CVE-2026-44727?
Is jupyter-server affected?
What is the CVSS score of CVE-2026-44727?
What CWE is associated with CVE-2026-44727?
How can I check PyPI dependencies for CVE-2026-44727?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fcw5-x6j4-ccmp",
"modified" : "2026-08-28T18:31:11Z",
"published" : "2026-06-18T15:04:07Z",
"aliases" : [ "CVE-2026-44727" ],
"summary" : "Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP ",
"details" : "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`. \n\nCombined 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.\n\n### Impact\n\nAn 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.\n\n### Patches\n\nFixed in v2.20.0, commit [6cbee8d](https://github.com/jupyter-server/jupyter_server/commit/6cbee8d65e71abac851c4492fea987ad080580bd)\n\n\n### Workarounds\n\nFor 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:\n\n```\nimport jupyter_server.nbconvert.handlers as _nb\n\ndef _csp(self):\n return super(type(self), self).content_security_policy + \"; sandbox allow-scripts\"\n\n_nb.NbconvertFileHandler.content_security_policy = property(_csp)\n_nb.NbconvertPostHandler.content_security_policy = property(_csp)\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "jupyter-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.20.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.19.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-fcw5-x6j4-ccmp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44727"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter-server/jupyter_server/commit/6cbee8d65e71abac851c4492fea987ad080580bd"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:43038"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60520"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-44727"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2491516"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-fcw5-x6j4-ccmp"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jupyter-server/jupyter_server"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-366.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/jupyter-server"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44727.json"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1021", "CWE-79" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T15:04:07Z",
"nvd_published_at" : "2026-06-22T21:16:24Z"
}
}