PT-2018-14936 · Project Jupyter+2 · Jupyter Notebook+2

Published

2018-11-18

·

Updated

2022-09-10

·

CVE-2018-19351

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Jupyter Notebook versions prior to 5.7.1
Description The issue allows for cross-site scripting (XSS) attacks via an untrusted notebook. This is because nbconvert responses are considered to have the same origin as the notebook server, enabling nbconvert endpoints to execute JavaScript with access to the server API. Specifically, in the notebook/nbconvert/handlers.py file, the NbconvertFileHandler and NbconvertPostHandler do not set a Content Security Policy, which would prevent this issue.
Recommendations For versions prior to 5.7.1, update to version 5.7.1 or later to resolve the issue. As a temporary workaround, consider setting a Content Security Policy to restrict JavaScript execution from untrusted sources. Restrict access to nbconvert endpoints to minimize the risk of exploitation.

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2018-19351
DLA-2432-1
GHSA-49QR-XH3W-H436
MGASA-2022-0323
PYSEC-2018-17
USN-5585-1

Affected Products

Jupyter Notebook
Linuxmint
Ubuntu