Vulnerability · Published Aug 18, 2022 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity cross-site scripting in nbconvert from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nbconvert6.5.1-1DEBIAN-CVE-2021-32862
Debian:13nbconvert6.5.1-1DEBIAN-CVE-2021-32862
Debian:14nbconvert6.5.1-1DEBIAN-CVE-2021-32862
PyPInbconvert6.5.1GHSA-9jmq-rx5f-8jwq
PyPInbconvert6.3.0a0PYSEC-2022-249
Ubuntu:22.04:LTSnbconvertno fix listedUBUNTU-CVE-2021-32862

Affected products (as reported)

VendorProductVersions
jupyter nbconvert <= 6.2

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

References