CVE-2021-32862
MEDIUM 5.4CVSS 3.1nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths
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).
- Published
- 18 Aug 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-9jmq-rx5f-8jwqGHSA-h274-fcvj-h2wmPYSEC-2022-249
- Sources
- NVDJSONOSV GHSA-9jmq-rx5f-8jwqJSONOSV PYSEC-2022-249JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | nbconvertcpe:2.3:a:jupyter:nbconvert:*:*:*:*:*:python:*:* |
<= 6.2.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | nbconvert | < 6.5.1 | 6.5.1 |
| OSV | PyPI | nbconvert | < 6.3.0a0 | 6.3.0a0 |
References
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq · Exploit, Third Party Advisory, WEB, ADVISORY
- https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm · Broken Link, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2023/06/msg00003.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00004.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-32862 · ADVISORY
- https://github.com/jupyter/nbconvert · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/nbconvert/PYSEC-2022-249.yaml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Aug 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Aug 2022)