{"id":"UBUNTU-CVE-2021-32798","details":"The Jupyter notebook is a web-based notebook environment for interactive computing. In affected versions untrusted notebook can execute code on load. Jupyter Notebook uses a deprecated version of Google Caja to sanitize user inputs. A public Caja bypass can be used to trigger an XSS when a victim opens a malicious ipynb document in Jupyter Notebook. The XSS allows an attacker to execute arbitrary code on the victim computer using Jupyter APIs.","modified":"2025-10-24T04:50:21Z","published":"2021-08-09T21:15:00Z","upstream":["CVE-2021-32798"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32798"},{"type":"REPORT","url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797"},{"type":"REPORT","url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32798"}],"affected":[{"package":{"name":"jupyter-notebook","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/jupyter-notebook@5.2.2-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-4","5.1.0-2","5.2.1-2","5.2.2-1","5.2.2-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.2.2-1ubuntu0.1","binary_name":"jupyter-notebook"},{"binary_name":"python-notebook","binary_version":"5.2.2-1ubuntu0.1"},{"binary_name":"python3-notebook","binary_version":"5.2.2-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32798.json"}},{"package":{"name":"jupyter-notebook","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/jupyter-notebook@6.0.3-2ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7.8-1","6.0.0-1","6.0.0-2","6.0.2-1","6.0.3-1","6.0.3-2","6.0.3-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"jupyter-notebook","binary_version":"6.0.3-2ubuntu0.1"},{"binary_name":"python3-notebook","binary_version":"6.0.3-2ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32798.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}