{"schemaVersion":3,"id":"CVE-2021-32798","aliases":["GHSA-hwvq-6gjx-j797","BIT-jupyter-base-notebook-2021-32798","BIT-jupyter-notebook-2021-32798","PYSEC-2021-118","UBUNTU-CVE-2021-32798","DEBIAN-CVE-2021-32798"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-08-09T20:50:10.000Z","modified":"2024-08-03T23:33:55.864Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.8,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","exploitability":10,"impact":9.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":7.2,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":7.2,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02106,"percentile":0.81466,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02106},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02106,"percentile":0.81466}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02106,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02106,"percentile":0.81466}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_JUPYTER_NOTEBOOK","name":"Notebook","source":"github","url":"https://github.com/jupyter/notebook/commit/35f32dd2da804d108a3a3585b69ec3295b2677ed","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"debian","product":"jupyter-notebook","name":"jupyter-notebook","label":"jupyter-notebook","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/jupyter-notebook","purlType":"deb","versions":[{"text":"< 6.4.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.4.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"jupyter-notebook","name":"jupyter-notebook","label":"jupyter-notebook","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/jupyter-notebook","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"jupyter","product":"notebook","name":"notebook","label":"notebook","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0.0, < 6.4.1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.7.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.7.0, < 5.7.11","noFixRecorded":false,"fixedIn":null},{"text":"6.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 6.4.1 | < 5.7.11 | ≥ 5.7.0, < 5.7.11 | 6.4.0","eol":null,"hubHref":"/vendor/jupyter/notebook"},{"vendor":"PyPI","product":"notebook","name":"notebook","label":"notebook","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/notebook","purlType":"pypi","versions":[{"text":"< 5.7.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.4.1","noFixRecorded":false,"fixedIn":null},{"text":"< 79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.7.0, < 5.7.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.7.11 | ≥ 6.0.0, < 6.4.1 | < 79fc76e890a8ec42f73a3d009e44ef84c14ef0d5 | ≥ 5.7.0, < 5.7.11","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","label":"github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Third Party Advisory"]},{"url":"https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","label":"github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32798","label":"nvd.nist.gov/vuln/detail/CVE-2021-32798","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyter/notebook","label":"github.com/jupyter/notebook","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-32798","label":"ubuntu.com/security/CVE-2021-32798","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32798","label":"www.cve.org/CVERecord?id=CVE-2021-32798","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32798","label":"security-tracker.debian.org/tracker/CVE-2021-32798","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:0231-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:0231-1"]},"timeline":[{"kind":"published","date":"2021-08-09T20:50:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:55.864Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:28:57.730Z","stale":false,"partial":false}}