Critical severity · published Aug 9, 2021
CVE-2021-32798
The Jupyter notebook is a web-based notebook environment for interactive computing
9.6
CVSS
2.1%
EPSS
No
On KEV
Description
The Jupyter notebook is a web-based notebook environment for interactive computing. In affected versions untrusted notebook can execute code on load. Jupyter Notebook uses a deprecated version of Google Caja to sanitize user inputs. A public Caja bypass can be used to trigger an XSS when a victim opens a malicious ipynb document in Jupyter Notebook. The XSS allows an attacker to execute arbitrary code on the victim computer using Jupyter APIs.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)2.1% · higher than 82% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NO
Notebook · Jupyter
5.7.0 before 5.7.11; 6.4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-32798
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-32798
Exploit
https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5
Third Party Advisory
https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797
More from Notebook
9.6
CVE-2026-42557
jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content
8.4
CVE-2026-40171
Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker
7.8
CVE-2018-8768
In Jupyter Notebook before 5.4.1, a maliciously forged notebook file can bypass sanitization to execute JavaScript in the notebook context
7.5
CVE-2022-24758
The Jupyter notebook is a web-based notebook environment for interactive computing
6.5
CVE-2024-22421
JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture
