{"api_version":"1","generated_at":"2026-07-23T20:49:08+00:00","cve":"CVE-2021-32798","urls":{"html":"https://cve.report/CVE-2021-32798","api":"https://cve.report/api/cve/CVE-2021-32798.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32798","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32798"},"summary":{"title":"CVE-2021-32798","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 code on the victim computer using Jupyter APIs.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-08-09 21:15:00","updated_at":"2021-08-17 17:08:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","name":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","refsource":"CONFIRM","tags":[],"title":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook · Advisory · jupyter/notebook · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","name":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-hwvq-6gjx-j797 · jupyter/notebook@79fc76e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32798","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32798","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32798","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"jupyter","cpe5":"notebook","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32798","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"jupyter","cpe5":"notebook","cpe6":"6.4.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32798","qid":"184959","title":"Debian Security Update for jupyter-notebook (CVE-2021-32798)"},{"cve":"CVE-2021-32798","qid":"375950","title":"Jupyter Notebook Special Element Injection Vulnerability"},{"cve":"CVE-2021-32798","qid":"981557","title":"Python (pip) Security Update for notebook (GHSA-hwvq-6gjx-j797)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32798","STATE":"PUBLIC","TITLE":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"notebook","version":{"version_data":[{"version_value":">= 6.0.0, < 6.4.1"},{"version_value":"< 5.7.11"}]}}]},"vendor_name":"jupyter"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","refsource":"CONFIRM","url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797"},{"name":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","refsource":"MISC","url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5"}]},"source":{"advisory":"GHSA-hwvq-6gjx-j797","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-08-09 21:15:00","lastModifiedDate":"2021-08-17 17:08:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.6,"baseSeverity":"CRITICAL"},"exploitabilityScore":2.8,"impactScore":6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:jupyter:notebook:6.4.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7.0","versionEndExcluding":"5.7.11","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32798","Ordinal":"208186","Title":"CVE-2021-32798","CVE":"CVE-2021-32798","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32798","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32798","Ordinal":"2","NoteData":"2021-08-09","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32798","Ordinal":"3","NoteData":"2021-08-09","Type":"Other","Title":"Modified"}]}}}