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
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Jupyter Notebook
Linuxmint
Ubuntu