{"id":"CVE-2021-32798","published":"2021-08-09T20:50:10Z","modified":"2024-08-03T23:33:55Z","title":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook","vendor":"jupyter","product":"notebook","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02106,"percentile":0.82205,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","tags":["x_refsource_MISC"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":16.44},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"notebook","versions":[">= 6.0.0, < 6.4.1","< 5.7.11"]}],"affected":[{"ecosystem":"PyPI","package":"notebook","vulnerableRanges":["<5.7.11",">=6.0.0, <6.4.1",">=5.7.0, <5.7.11"],"patched":["5.7.11","6.4.1"],"from":["GHSA-hwvq-6gjx-j797","PYSEC-2021-118"],"provenance":"source"}],"summary":{"text":"The Jupyter Notebook web-based computing environment contains a flaw in which its HTML sanitization of user input, built on a deprecated version of Google Caja, can be bypassed to inject script into the page. An attacker can craft a malicious ipynb document that, when a victim opens it in Jupyter Notebook, triggers cross-site scripting that runs arbitrary code on the victim's computer via Jupyter APIs, requiring only that the victim open the file over the network without authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:57Z"},"euvd":{"id":"EUVD-2021-0149","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-10856","published":"2019-04-04","fixed":"5.7.8","kev":false},{"cve":"CVE-2020-26215","published":"2020-11-18","fixed":"6.1.5","kev":false,"link":{"from":"CVE-2020-26215","to":"CVE-2021-32798","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"6.1.5","toFixed":"6.4.1","daysApart":264}]}},{"cve":"CVE-2021-32797","published":"2021-08-09","fixed":"6.4.1","kev":false},{"cve":"CVE-2021-32798","published":"2021-08-09","fixed":"6.4.1","kev":false},{"cve":"CVE-2022-24758","published":"2022-03-31","fixed":"6.4.10","kev":false},{"cve":"CVE-2022-29238","published":"2022-06-14","fixed":"6.4.12","kev":false},{"cve":"CVE-2024-22420","published":"2024-01-19","fixed":"7.0.7","kev":false}],"package":"PyPI:notebook"}}