Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-19351 EUVD-2018-0104GHSA-49qr-xh3w-h436PYSEC-2018-17

Jupyter Notebook XSS via untrusted notebooks

Published Nov 18, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jupyter-notebook 5.7.4-1 —
Debian 13 jupyter-notebook 5.7.4-1 —
Debian 12 jupyter-notebook 5.7.4-1 —
Debian 9 jupyter-notebook 4.2.3-4+deb9u1 DLA-2432-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS jupyter-notebook 6.4.8-1ubuntu0.1 USN-5585-1
Ubuntu 20.04 LTS jupyter-notebook 6.0.3-2ubuntu0.1 USN-5585-1
Ubuntu 18.04 LTS jupyter-notebook 5.2.2-1ubuntu0.1 USN-5585-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI notebook < 5.7.1 5.7.1 GHSA-49qr-xh3w-h436

Advisories 2

References