PyPI: notebook

CVE-2018-21030

Safety vulnerability ID: SFTY-20191031-64384

Safety legacy ID: pyup.io-54682

Jupyter Notebook before 5.5.0 does not use a CSP header to treat served files as belonging to a separate origin. Thus, for example, an XSS payload can be placed in an SVG document.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Cross-site scripting in Jupyter Notebook

Advisory

Jupyter Notebook before 5.5.0 does not use a CSP header to treat served files as belonging to a separate origin. Thus, for example, an XSS payload can be placed in an SVG document.

Affected Package

Affecting notebook package, versions>=0,<5.5.0rc1

Also affects

---

How to Fix

Upgradenotebookto5.5.0rc1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more