{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32798","id":"CVE-2021-32798","title":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook","description":"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 ","descriptionLong":"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.","published":"2021-08-09T20:50:10.000Z","updated":"2026-11-14T02:45:06.008948003Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"critical","source":"GitHub"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"critical","source":"github.com"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","rating":"critical","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["jupyter notebook"],"affectedProducts":[{"vendor":"jupyter","product":"notebook","defaultStatus":null,"versions":[{"status":"affected","version":">= 6.0.0, < 6.4.1"},{"status":"affected","version":"< 5.7.11"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"notebook","purl":"pkg:pypi/notebook","ranges":["<5.7.11",">=6.0.0 <6.4.1",">=5.7.0 <5.7.11"],"fixed":["5.7.11","6.4.1"],"advisory":"GHSA-hwvq-6gjx-j797"}],"cwes":["CWE-79","CWE-75","CWE-80"],"aliases":["BIT-jupyter-base-notebook-2021-32798","BIT-jupyter-notebook-2021-32798","GHSA-hwvq-6gjx-j797","PYSEC-2021-118"],"references":[{"url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32798","tags":["advisory"]},{"url":"https://github.com/jupyter/notebook","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02106,"epssPercentile":0.8215,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32798","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32798","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32798","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hwvq-6gjx-j797","ok":true,"note":"GHSA-hwvq-6gjx-j797"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32798","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}