PyPI: nbconvert
CVE-2021-32862
Safety vulnerability ID: SFTY-20220818-51015
Safety legacy ID: pyup.io-50792
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). https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq
Overview
nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths
Advisory
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). https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20220818-51015/CVE-2021-32862
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq
- https://nvd.nist.gov/vuln/detail/CVE-2021-32862
- https://github.com/pypa/advisory-database/tree/main/vulns/nbconvert/PYSEC-2022-249.yaml
- https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm
- https://lists.debian.org/debian-lts-announce/2023/06/msg00003.html
- https://github.com/advisories/GHSA-9jmq-rx5f-8jwq
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
