Vulnerabilities · 2021 · Jupyter
CVE-2021-32798
Jupyter Notebook vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Notebook. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Jupyter Notebook runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5 · Exploit
- github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-32798
- github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml
- github.com/advisories/GHSA-hwvq-6gjx-j797
- nvd.nist.gov/vuln/detail/CVE-2021-32798
- cve.org/CVERecord?id=CVE-2021-32798
More vulnerabilities in Jupyter products
CVE-2025-59842CVE-2025-53000CVE-2025-30167CVE-2024-43805CVE-2024-41942CVE-2024-39700CVE-2024-35225CVE-2024-35178All 47
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.