CVE-2021-32798
CRITICAL10.0EPSS 0.17%Special Element Injection in notebook
Published: 8/23/2021Modified: 4/28/2026
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.
Affected packages (5)
- Bitnami/jupyter-base-notebook>= 5.7.0, < 5.7.11, >= 6.4.0, < 6.4.1
- Bitnami/jupyter-notebook>= 5.7.0, < 5.7.11, >= 6.4.0, < 6.4.1
- Debian/jupyter-notebookfrom 0
- PyPI/notebookfrom 0, < 5.7.11
- PyPI/notebookfrom 0, < 79fc76e890a8ec42f73a3d009e44ef84c14ef0d5 | >= 5.7.0, < 5.7.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| osv | CVSS 3.1 | CRITICAL10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-32798
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-32798
- PATCHhttps://github.com/jupyter/notebook
- WEBhttps://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5
- WEBhttps://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml