CVE-2021-32798: Special Element Injection in notebook

CVE-2021-32798 · Severity: low · CVSS 3.1 · Published 2021-08-09

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.

Technologies: notebook (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-32798 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-32798 being exploited in the wild.
How severe is CVE-2021-32798?
Low severity, with a CVSS score of 3.1, published 9 August 2021.
Which products and versions are affected?
notebook (PyPI) ECOSYSTEM:introduced=0,fixed=5.7.11, GIT:introduced=0,fixed=79fc76e890a8ec42f73a3d009e44ef84c14ef0d5|ECOSYSTEM:introduced=5.7.0,fixed=5.7.11.
Is there a fix for CVE-2021-32798?
Yes. notebook (PyPI): upgrade to 5.7.11 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-32798?
Check whether you run notebook (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • notebook (PyPI): upgrade to 5.7.11 or later
    pip install "notebook>=5.7.11"

Affected products

  • notebook (PyPI) ECOSYSTEM:introduced=0,fixed=5.7.11, GIT:introduced=0,fixed=79fc76e890a8ec42f73a3d009e44ef84c14ef0d5|ECOSYSTEM:introduced=5.7.0,fixed=5.7.11

Identifiers

  • CVE-2021-32798
  • GHSA-hwvq-6gjx-j797
  • PYSEC-2021-118

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.