Skip to content

CVE-2018-19351 Jupyter Notebook XSS via untrusted notebooks

MediumCVSS 6.1 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/jupyter-notebook(Debian 12) < 5.7.4-1 5.7.4-1 Fixed
debian/jupyter-notebook(Debian 13) < 5.7.4-1 5.7.4-1 Fixed
debian/jupyter-notebook(Debian 14) < 5.7.4-1 5.7.4-1 Fixed
jupyter notebook < 5.7.1 5.7.1 Fixed
pypi notebook(PyPI) < 5.7.1; = 0.0.0; = 4.0.0; = 4.0.1 +39 more 5.7.1 Fixed
ubuntu/jupyter-notebook(Ubuntu 18.04) < 5.2.2-1ubuntu0.1; = 4.2.3-4; = 5.1.0-2; = 5.2.1-2 +1 more 5.2.2-1ubuntu0.1 Fixed

Affected products

ProductAffected versionsFixed in
pypi notebook(PyPI) < 5.7.1 5.7.1
pypi notebook(PyPI) = 0.0.0 No fix listed
pypi notebook(PyPI) = 4.0.0 No fix listed
pypi notebook(PyPI) = 4.0.1 No fix listed
pypi notebook(PyPI) = 4.0.2 No fix listed
pypi notebook(PyPI) = 4.0.4 No fix listed
pypi notebook(PyPI) = 4.0.5 No fix listed
pypi notebook(PyPI) = 4.0.6 No fix listed
pypi notebook(PyPI) = 4.1.0 No fix listed
pypi notebook(PyPI) = 4.2.0 No fix listed
pypi notebook(PyPI) = 4.2.0b1 No fix listed
pypi notebook(PyPI) = 4.2.1 No fix listed
pypi notebook(PyPI) = 4.2.2 No fix listed
pypi notebook(PyPI) = 4.2.3 No fix listed
pypi notebook(PyPI) = 4.3.0 No fix listed
pypi notebook(PyPI) = 4.3.1 No fix listed
pypi notebook(PyPI) = 4.3.2 No fix listed
pypi notebook(PyPI) = 4.4.0 No fix listed
pypi notebook(PyPI) = 4.4.1 No fix listed
pypi notebook(PyPI) = 5.0.0 No fix listed
pypi notebook(PyPI) = 5.0.0b1 No fix listed
pypi notebook(PyPI) = 5.0.0b2 No fix listed
pypi notebook(PyPI) = 5.0.0rc1 No fix listed
pypi notebook(PyPI) = 5.0.0rc2 No fix listed
pypi notebook(PyPI) = 5.1.0 No fix listed
Show 27 more
ProductAffected versionsFixed in
pypi notebook(PyPI) = 5.1.0rc1 No fix listed
pypi notebook(PyPI) = 5.1.0rc2 No fix listed
pypi notebook(PyPI) = 5.1.0rc3 No fix listed
pypi notebook(PyPI) = 5.2.0 No fix listed
pypi notebook(PyPI) = 5.2.0rc1 No fix listed
pypi notebook(PyPI) = 5.2.1 No fix listed
pypi notebook(PyPI) = 5.2.1rc1 No fix listed
pypi notebook(PyPI) = 5.2.2 No fix listed
pypi notebook(PyPI) = 5.3.0 No fix listed
pypi notebook(PyPI) = 5.3.0rc1 No fix listed
pypi notebook(PyPI) = 5.3.1 No fix listed
pypi notebook(PyPI) = 5.4.0 No fix listed
pypi notebook(PyPI) = 5.4.1 No fix listed
pypi notebook(PyPI) = 5.5.0 No fix listed
pypi notebook(PyPI) = 5.5.0rc1 No fix listed
pypi notebook(PyPI) = 5.6.0 No fix listed
pypi notebook(PyPI) = 5.6.0rc1 No fix listed
pypi notebook(PyPI) = 5.7.0 No fix listed
debian/jupyter-notebook(Debian:12) < 5.7.4-1 5.7.4-1
debian/jupyter-notebook(Debian:13) < 5.7.4-1 5.7.4-1
debian/jupyter-notebook(Debian:14) < 5.7.4-1 5.7.4-1
jupyter notebook < 5.7.1 5.7.1
ubuntu/jupyter-notebook(Ubuntu:18.04) < 5.2.2-1ubuntu0.1 5.2.2-1ubuntu0.1
ubuntu/jupyter-notebook(Ubuntu:18.04) = 4.2.3-4 No fix listed
ubuntu/jupyter-notebook(Ubuntu:18.04) = 5.1.0-2 No fix listed
ubuntu/jupyter-notebook(Ubuntu:18.04) = 5.2.1-2 No fix listed
ubuntu/jupyter-notebook(Ubuntu:18.04) = 5.2.2-1 No fix listed

References