Vulnerability · Published Aug 9, 2021 · Assigned by GitHub_M
CVE-2021-32798Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook
Critical 10.0
In plain English
A critical-severity cross-site scripting in notebook from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jupyter-notebook | 6.4.3-1 | DEBIAN-CVE-2021-32798 |
| Debian:13 | jupyter-notebook | 6.4.3-1 | DEBIAN-CVE-2021-32798 |
| Debian:14 | jupyter-notebook | 6.4.3-1 | DEBIAN-CVE-2021-32798 |
| PyPI | notebook | 5.7.11 | GHSA-hwvq-6gjx-j797 |
| PyPI | notebook | 6.4.1 | GHSA-hwvq-6gjx-j797 |
| PyPI | notebook | 5.7.11 | PYSEC-2021-118 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N