SecurityContext

CVE-2021-32798: Jupyter Notebook - Stored XSS

  • Cve: CVE-2021-32798
  • Name: Jupyter Notebook - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary code on victim's machine via malicious notebooks, leading to potential full system compromise.
  • Remediation: Update to the latest version of Jupyter Notebook with fixed sanitization methods or replace deprecated components.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to open a malicious notebook
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.02106
  • Epss percentile: 0.82108
  • Assignee: [email protected]
  • Published at: 2021-08-09T21:15:08Z
  • Age in days: 1933
  • Modified at: 2026-06-17T03:53:39Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32798
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5nvd2021-08-09

References

UrlSourceTags
https://github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5nvdExploit, Third Party Advisory
https://github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
jupyter:notebook= 6.4.0; >= 5.7.0, < 5.7.11nonvd/v1/products/jupyter/notebook

Projects

RepositoryLink kindsIndexedUrl
jupyter/notebookcommit, fix, package, security_advisoryyes/v1/repositories/jupyter/notebook

Index

  • Repositories: 161
  • Repositories high signal: 79
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-08-09
  • Remote: yes
  • Exposed hosts: 3924
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports