Cross-site Scripting (XSS) Affecting jupyter-notebook package, versions <5.2.2-1ubuntu0.1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.12% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1804-JUPYTERNOTEBOOK-1189033
  • published10 Sept 2020
  • disclosed18 Nov 2018

Introduced: 18 Nov 2018

CVE-2018-19351  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 jupyter-notebook to version 5.2.2-1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jupyter-notebook package and not the jupyter-notebook package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.