CVE-2018-19351
MEDIUM 6.1CVSS 3.0Jupyter Notebook XSS via untrusted notebooks
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.
- Published
- 18 Nov 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-49qr-xh3w-h436PYSEC-2018-17
- Sources
- NVDJSONOSV GHSA-49qr-xh3w-h436JSONOSV PYSEC-2018-17JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | notebookcpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* |
< 5.7.1 | 5.7.1 |
| OSV | PyPI | notebook | < 5.7.1 | 5.7.1 |
References
- https://github.com/jupyter/notebook/blob/master/docs/source/changelog.rst · Release Notes, WEB
- https://github.com/jupyter/notebook/commit/107a89fce5f413fb5728c1c5d2c7788e1fb17491 · Patch, Third Party Advisory, WEB, FIX
- https://groups.google.com/forum/#%21topic/jupyter/hWzu2BSsplY
- https://lists.debian.org/debian-lts-announce/2020/11/msg00033.html · WEB
- https://pypi.org/project/notebook/#history · Third Party Advisory, WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2018-19351 · ADVISORY
- https://github.com/jupyter/notebook · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2018-17.yaml · WEB
- https://groups.google.com/forum/#!topic/jupyter/hWzu2BSsplY · WEB
- https://github.com/advisories/GHSA-49qr-xh3w-h436 · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 18 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Nov 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Nov 2018)