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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nbconvert | 6.5.1-1 | DEBIAN-CVE-2021-32862 |
| Debian:13 | nbconvert | 6.5.1-1 | DEBIAN-CVE-2021-32862 |
| Debian:14 | nbconvert | 6.5.1-1 | DEBIAN-CVE-2021-32862 |
| PyPI | nbconvert | 6.5.1 | GHSA-9jmq-rx5f-8jwq |
| PyPI | nbconvert | 6.3.0a0 | PYSEC-2022-249 |
| Ubuntu:22.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2021-32862 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq
- https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm
- [debian-lts-announce] 20230603 [SECURITY] [DLA 3442-1] nbconvert security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00004.html