{"id":"CVE-2026-44727","aliases":["CVE-2026-44727","GHSA-fcw5-x6j4-ccmp","PYSEC-2026-366"],"related":[],"kind":"vulnerability","state":"published","title":"Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP","summary":"Jupyter Server is the backend for Jupyter web applications. Prior to 2.20, 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. This vulnerability is fixed in 2.20.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jupyter Server is the backend for Jupyter web applications. Prior to 2.20, 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. This vulnerability is fixed in 2.20.","source":"cvelist"},{"lang":"en","text":"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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jupyter Server es el backend para las aplicaciones web de Jupyter. Antes de 2.20, los manejadores HTTP de nbconvert en jupyter_server renderizan HTML de cuadernos creados por el usuario bajo el origen de Jupyter sin una directiva sandbox en su Content-Security-Policy. Combinado con el comportamiento predeterminado de no saneamiento de nbconvert.HTMLExporter, un cuaderno que lleva una carga útil HTML en una salida display_data desencadena XSS almacenado con acceso a cookies, autoridad completa sobre /api/* y RCE del kernel. Esta vulnerabilidad está corregida en 2.20.","source":"nvd"}],"published":"2026-06-18T15:04:07.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-79","CWE-1021"],"affected":[{"ranges":[{"version":"< 2.20","status":"affected"}],"vendor":"jupyter-server","product":"jupyter_server","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784109883","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Migration Toolkit for Applications 8.2","package":"mta/mta-solution-server-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_applications:8.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787076778","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-th06-cpu-torch210-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787077779","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-th06-cuda130-torch210-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787076481","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-th06-rocm64-torch291-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787074331","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073913","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787074078","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073929","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073605","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073546","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073717","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073713","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787073593","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-th06-cpu-torch291-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-th06-cuda130-torch291-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.20.0"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.20.0"}],"vendor":"jupyter","product":"jupyter_server","cpe":"cpe:2.3:a:jupyter:jupyter_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.20.0"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"pysec"}],"references":[{"url":"https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-fcw5-x6j4-ccmp","tags":["mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyter-server/jupyter_server/commit/6cbee8d65e71abac851c4492fea987ad080580bd","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-44727","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491516","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44727.json","tags":["web","x-sadp-csaf-vex"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43038","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:60520","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44727","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-fcw5-x6j4-ccmp","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jupyter-server/jupyter_server","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-366.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/jupyter-server","tags":["package","web"],"sources":["ghsa","pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-23T12:15:20.487Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44727","url":"https://www.cve.org/CVERecord?id=CVE-2026-44727","licence":"CVE Terms of Use","modified":"2026-08-28T12:04:25.625Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fcw5-x6j4-ccmp","url":"https://github.com/advisories/GHSA-fcw5-x6j4-ccmp","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:49.418Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44727","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44727","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-366","url":"https://osv.dev/vulnerability/PYSEC-2026-366","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:26.841Z"}],"updatedAt":"2026-11-25T22:59:25.410Z","epss":{"score":0.00281,"percentile":0.22079,"date":"2026-12-01T12:00:22.000Z"}}