CVE-2021-32862: nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths

CVE-2021-32862 · Severity: low · CVSS 3.1 · Published 2022-08-18

The GitHub Security Lab discovered sixteen ways to exploit a cross-site scripting vulnerability in nbconvert. When using nbconvert to generate an HTML version of a user-controllable notebook, it is possible to inject arbitrary HTML which may lead to cross-site scripting (XSS) vulnerabilities if these HTML notebooks are served by a web server (eg: nbviewer).

Technologies: nbconvert (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-32862 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-32862 being exploited in the wild.
How severe is CVE-2021-32862?
Low severity, with a CVSS score of 3.1, published 18 August 2022.
Which products and versions are affected?
nbconvert (PyPI) ECOSYSTEM:introduced=0,fixed=6.3.0a0, ECOSYSTEM:introduced=0,fixed=6.5.1.
Is there a fix for CVE-2021-32862?
Yes. nbconvert (PyPI): upgrade to 6.3.0a0, 6.5.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-32862?
Check whether you run nbconvert (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

  • nbconvert (PyPI): upgrade to 6.3.0a0, 6.5.1 or later
    pip install "nbconvert>=6.5.1"

Affected products

  • nbconvert (PyPI) ECOSYSTEM:introduced=0,fixed=6.3.0a0, ECOSYSTEM:introduced=0,fixed=6.5.1

Identifiers

  • CVE-2021-32862
  • GHSA-9jmq-rx5f-8jwq
  • PYSEC-2022-249

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