CVE-2018-19351Jupyter Notebook
Medium 6.1 No auth needed
Follow: this CVE · Jupyter · Jupyter Notebook We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Notebook.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| jupyter | notebook | < 5.7.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Patch Third Party Advisory
- groups.google.com
- lists.debian.org
- pypi.org Third Party Advisory