Cross-site scripting in Jupyter Notebook - CVE-2018-19351

 

Cross-site scripting in Jupyter Notebook - CVE-2018-19351

Published: November 18, 2018


Vulnerability identifier: #VU15943
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2018-19351
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data in notebook/nbconvert/handlers.py. A remote attacker can trick the victim to follow a specially specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Jupyter Notebook
Arch Linux
Ubuntu
Fedora
python3-notebook (Ubuntu package)
jupyter-notebook (Ubuntu package)
python-notebook (Ubuntu package)
python-notebook

How to mitigate CVE-2018-19351

Install update from vendor's website.

Jupyter Notebook - update to 5.7.1
python3-notebook (Ubuntu package) - addressed in versions 5.2.2-1ubuntu0.1, 6.0.3-2ubuntu0.1, 6.4.8-1ubuntu0.1
jupyter-notebook (Ubuntu package) - addressed in versions 5.2.2-1ubuntu0.1, 6.0.3-2ubuntu0.1, 6.4.8-1ubuntu0.1
python-notebook (Ubuntu package) - update to 5.2.2-1ubuntu0.1
python-notebook - addressed in versions 5.5.0-6.fc28, 5.7.2-1.fc29

External References

Related Security Bulletins