{"id":"CVE-2018-19351","published":"2018-11-18T17:00:00Z","modified":"2024-08-05T11:37:10Z","title":"Jupyter Notebook before 5.7.1 allows XSS via an untrusted notebook because nbconvert responses are considered to have…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01511,"percentile":0.75086,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21topic/jupyter/hWzu2BSsplY","tags":["x_refsource_MISC"]},{"url":"https://pypi.org/project/notebook/#history","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/notebook/blob/master/docs/source/changelog.rst","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/notebook/commit/107a89fce5f413fb5728c1c5d2c7788e1fb17491","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00033.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":15.02}]},"affected":[{"ecosystem":"PyPI","package":"notebook","vulnerableRanges":["<5.7.1"],"patched":["5.7.1"],"from":["GHSA-49qr-xh3w-h436","PYSEC-2018-17"],"provenance":"source"}],"summary":{"text":"Jupyter Notebook before 5.7.1 has a cross-site scripting flaw in its nbconvert handling, specifically in NbconvertFileHandler and NbconvertPostHandler in notebook/nbconvert/handlers.py, which do not set a Content Security Policy. An attacker can supply an untrusted notebook so that JavaScript runs in the same origin as the notebook server, gaining access to the server API, with the attack depending on a user opening that notebook through the nbconvert endpoints.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:44Z"},"euvd":{"id":"EUVD-2018-0104","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2015-7337","published":"2015-09-29","fixed":"4.0.5","kev":false},{"cve":"CVE-2018-8768","published":"2018-03-18","fixed":"5.4.1","kev":false},{"cve":"CVE-2018-21030","published":"2019-10-31","fixed":"5.5.0","kev":false},{"cve":"CVE-2018-19351","published":"2018-11-18","fixed":"5.7.1","kev":false},{"cve":"CVE-2018-19352","published":"2018-11-18","fixed":"5.7.2","kev":false,"link":{"from":"CVE-2018-19351","to":"CVE-2018-19352","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"5.7.1","toFixed":"5.7.2","daysApart":0}]}},{"cve":"CVE-2019-9644","published":"2019-03-12","fixed":"5.7.6","kev":false},{"cve":"CVE-2019-10255","published":"2019-03-28","fixed":"5.7.8","kev":false}],"package":"PyPI:notebook"}}