CVE-2018-19351
mediumpriority · track · 25EPSS 0.015 · 74 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-49qr-xh3w-h436Jupyter Notebook XSS via untrusted notebooks2018-11-21ghsa · osvUS
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.
- PYSEC-2018-172018-11-18vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://github.com/jupyter/notebook/blob/master/docs/source/changelog.rstcnnvd
- https://github.com/jupyter/notebook/commit/107a89fce5f413fb5728c1c5d2c7788e1fb17491cnnvd
- https://groups.google.com/forum/#!topic/jupyter/hWzu2BSsplYcnnvd
- https://lists.debian.org/debian-lts-announce/2020/11/msg00033.htmlcnnvd
- https://packetstormsecurity.com/files/168197/Ubuntu-Security-Notice-USN-5585-1.htmlcnnvd
- https://pypi.org/project/notebook/#historycnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.4114/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.4276cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan