Advisory

PYSEC-2018-17

Also known as: CVE-2018-19351, GHSA-49qr-xh3w-h436

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2018-11-18 17:29 UTC
Modified
2023-11-08 04:00 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: PyPA Advisory Database · CC BY 4.0

Sources & licences