Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32862 EUVD-2022-0161GHSA-9jmq-rx5f-8jwqGHSA-h274-fcvj-h2wmPYSEC-2022-249

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

Published Aug 18, 2022 · Updated Sep 2, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
jupyter nbconvert <= 6.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nbconvert 6.5.1-1 —
Debian 13 nbconvert 6.5.1-1 —
Debian 12 nbconvert 6.5.1-1 —
Debian 11 nbconvert 5.6.1-3+deb11u1 DLA-3863-1
Debian 10 nbconvert 5.4-2+deb10u1 DLA-3442-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nbconvert No fix yet —
Ubuntu 20.04 LTS nbconvert No fix yet —
Ubuntu 18.04 LTS nbconvert No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.4.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nbconvert < 6.5.1 6.5.1 GHSA-9jmq-rx5f-8jwq
PyPI nbconvert < 6.3.0a0 6.3.0a0 PYSEC-2022-249

Advisories 2

References