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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.52%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-10T17:51:53.000Z
- Modified: 2026-09-10T03:50:06.998Z
- Also known as: GHSA-9jmq-rx5f-8jwq, GHSA-h274-fcvj-h2wm, PYSEC-2022-249
- Weaknesses: CWE-79
- 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).

(As written by CVE List.)

## Affected

- jupyter nbconvert: <= 6.2; up to 6.2.0
- nbconvert (PyPI): before 6.5.1; before 6.3.0a0
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq> (exploit, advisory, third-party-advisory, web)
- <https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm> (advisory, broken-link, web)
- <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)

## Sources

- CVE List: [CVE-2021-32862](https://www.cve.org/CVERecord?id=CVE-2021-32862), CVE Terms of Use, modified 2024-09-02
- GitHub Advisory Database: [GHSA-9jmq-rx5f-8jwq](https://github.com/advisories/GHSA-9jmq-rx5f-8jwq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-32862](https://nvd.nist.gov/vuln/detail/CVE-2021-32862), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-249](https://osv.dev/vulnerability/PYSEC-2022-249), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-32862 · Whole record: https://cve.day/CVE-2021-32862.json · Rebuilt by cve.day 2026-11-25T22:58:07.755Z
