CVE-2021-32798
CRITICAL 9.6CVSS 3.1Special Element Injection in notebook
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.
- Published
- 9 Aug 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-75CWE-79CWE-80
- Also known as
- BIT-jupyter-base-notebook-2021-32798BIT-jupyter-notebook-2021-32798GHSA-hwvq-6gjx-j797PYSEC-2021-118
- Sources
- NVDJSONOSV GHSA-hwvq-6gjx-j797JSONOSV PYSEC-2021-118JSON
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:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | notebookcpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:* |
>= 5.7.0, < 5.7.11 | 5.7.11 |
| NVD | jupyter | notebookcpe:2.3:a:jupyter:notebook:6.4.0:*:*:*:*:*:*:* |
= 6.4.0 | |
| OSV | PyPI | notebook | < 5.7.11 | 5.7.11 |
| OSV | PyPI | notebook | >= 6.0.0, < 6.4.1 | 6.4.1 |
| OSV | PyPI | notebook | >= 5.7.0, < 5.7.11 | 5.7.11 |
References
- https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5 · Exploit, Third Party Advisory, WEB, FIX
- https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-32798 · ADVISORY
- https://github.com/jupyter/notebook · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Aug 2021)