{"id":"UBUNTU-CVE-2021-32862","details":"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).","modified":"2025-10-24T04:50:21Z","published":"2022-08-18T19:15:00Z","upstream":["CVE-2021-32862"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32862"},{"type":"REPORT","url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq"},{"type":"REPORT","url":"https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32862"}],"affected":[{"package":{"name":"nbconvert","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nbconvert@5.3.1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.0-4","5.3.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"jupyter-nbconvert","binary_version":"5.3.1-1"},{"binary_name":"python-nbconvert","binary_version":"5.3.1-1"},{"binary_name":"python3-nbconvert","binary_version":"5.3.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32862.json"}},{"package":{"name":"nbconvert","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nbconvert@5.6.1-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4-2ubuntu2","5.6.0-1","5.6.0-2","5.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"jupyter-nbconvert","binary_version":"5.6.1-1"},{"binary_version":"5.6.1-1","binary_name":"python3-nbconvert"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32862.json"}},{"package":{"name":"nbconvert","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nbconvert@6.4.0-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.1-3","6.1.0-1","6.3.0-1","6.4.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"jupyter-nbconvert","binary_version":"6.4.0-1"},{"binary_name":"python3-nbconvert","binary_version":"6.4.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32862.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}