Advisory

GHSA-49qr-xh3w-h436

Also known as: CVE-2018-19351, PYSEC-2018-17

Summary

Jupyter Notebook XSS via untrusted notebooks

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-21 22:15 UTC
Modified
2024-09-27 20:02 UTC

Affected packages and fixes

notebook

PyPI · All systems

Affected

  • introduced 0, fixed 5.7.1 (ecosystem)

Fixed versions

5.7.1

Fix

  • Fixed version 5.7.1
    pip install --upgrade notebook==5.7.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences