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.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)2.1%top 18.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12jupyter-notebook6.4.3-1DEBIAN-CVE-2021-32798
Debian:13jupyter-notebook6.4.3-1DEBIAN-CVE-2021-32798
Debian:14jupyter-notebook6.4.3-1DEBIAN-CVE-2021-32798
PyPInotebook5.7.11GHSA-hwvq-6gjx-j797
PyPInotebook6.4.1GHSA-hwvq-6gjx-j797
PyPInotebook5.7.11PYSEC-2021-118

Affected products (as reported)

VendorProductVersions
jupyter notebook >= 6.0.0, < 6.4.1< 5.7.11

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

References