Jupyter Notebook before 5.7.1 allows XSS via an untrusted notebook because nbconvert…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | notebook (PyPI) | before 5.7.1 | 5.7.1 | Patch available | GHSA-49qr-xh3w-h436 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- notebook (PyPI) Vendor— Affected before 5.7.1 Fixed in 5.7.1 Patch available GHSA-49qr-xh3w-h436
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* | before 5.7.1 | Vulnerable | jupyterlab |
- cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* Versions before 5.7.1 Vulnerable ·jupyterlab
Remediation
- Fix · GHSA-49qr-xh3w-h436 notebook (PyPI) Fixed in 5.7.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2018-19351
- 2026-10-03 Alias added: GHSA-49qr-xh3w-h436
References
Other 6
- https://groups.google.com/forum/#%21topic/jupyter/hWzu2BSsplY
- https://github.com/jupyter/notebook/blob/master/docs/source/changelog.rst
- [debian-lts-announce] 20201119 [SECURITY] [DLA 2432-1] jupyter-notebook security update
- https://github.com/jupyter/notebook
- https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2018-17.yaml
- https://groups.google.com/forum/#!topic/jupyter/hWzu2BSsplY
More jupyterlab Notebook vulnerabilities
- TI-2021-12464 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook CVSS 3.1CRITICAL 10.0
- TI-2022-08572 Insertion of Sensitive Information into Log File affects Jupyter Notebook CVSS 3.1HIGH 7.5
- TI-2026-30837 jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content CVSS 4.0HIGH 8.6
- TI-2018-06323 In Jupyter Notebook before 5.4.1, a maliciously forged notebook file can bypass… CVSS 3.0HIGH 7.8
- TI-2015-06101 The editor in IPython Notebook before 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5… CVSS 2.0MEDIUM 6.8
- TI-2024-14994 Potential authentication and CSRF tokens leak in JupyterLab CVSS 3.1HIGH 7.6
Sources
- CVE-2018-19351 · CVE Program
- CVE-2018-19351 · NVD
- FIRST EPSS
- GHSA-49qr-xh3w-h436 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-19351 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences