Live threats

All CVEs / Jupyter

CVE-2018-19351Jupyter Notebook

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Nov 18, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Notebook.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI notebook < 5.7.1 5.7.1 pip install "notebook>=5.7.1"
PyPI notebook < 5.7.1 5.7.1 pip install "notebook>=5.7.1"

Per OSV / GitHub Advisories (GHSA-49qr-xh3w-h436, PYSEC-2018-17). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
jupyternotebook< 5.7.1

Official sources

References

Links published by the sources. Open them with care.