{"cve":"CVE-2018-19351","nvd":{"published":"2018-11-18T17:29:00.267","modified":"2026-06-17T01:49:11.017","status":"Modified","description":"Jupyter Notebook before 5.7.1 allows XSS via an untrusted notebook because nbconvert responses are considered to have the same origin as the notebook server. In other words, nbconvert endpoints can execute JavaScript with access to the server API. In notebook/nbconvert/handlers.py, NbconvertFileHandler and NbconvertPostHandler do not set a Content Security Policy to prevent this.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/jupyter/notebook/blob/master/docs/source/changelog.rst","https://github.com/jupyter/notebook/commit/107a89fce5f413fb5728c1c5d2c7788e1fb17491","https://groups.google.com/forum/#%21topic/jupyter/hWzu2BSsplY","https://lists.debian.org/debian-lts-announce/2020/11/msg00033.html","https://pypi.org/project/notebook/#history"],"products":["jupyter:notebook"],"source":"nvd","synced_at":"2026-10-19T20:53:59.789560037+00:00"},"epss":{"cve":"CVE-2018-19351","score":0.01511,"percentile":0.74466,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-49qr-xh3w-h436","url":"https://osv.dev/vulnerability/GHSA-49qr-xh3w-h436","summary":"Jupyter Notebook XSS via untrusted notebooks","modified":"2024-09-27T20:02:15.103252Z","packages":[{"ecosystem":"PyPI","name":"notebook","purl":"pkg:pypi/notebook","ranges":["<5.7.1"],"fixed":["5.7.1"]}]},{"id":"PYSEC-2018-17","url":"https://osv.dev/vulnerability/PYSEC-2018-17","summary":"","modified":"2023-11-08T04:00:07.633078Z","packages":[{"ecosystem":"PyPI","name":"notebook","purl":"pkg:pypi/notebook","ranges":["<5.7.1"],"fixed":["5.7.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}