CVE-2021-32797: jupyter jupyterlab Cross-site Scripting
Vulnerability summary
CVE-2021-32797 is a critical (CVSS 9.6) Cross-site Scripting vulnerability in jupyter jupyterlab. EPSS estimates a 2.66% chance of exploitation in the next 30 days, higher than 85.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 09-08-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
JupyterLab is a user interface for Project Jupyter which will eventually replace the classic Jupyter Notebook. In affected versions untrusted notebook can execute code on load. In particular JupyterLab doesn’t sanitize the action attribute of html `<form>`. Using this it is possible to trigger the form validation outside of the form itself. This is a remote code execution, but requires user action to open a notebook.
CVSS metrics
5 scores · 3 sources · 3 versions- CVE.orgCNA7.4HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NDiffers
EPSS trend
Probability
2.66%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
0.00 pp
From 2.66% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundJupyterlab
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Mageia2 products
- jupyter-jupyterlab-server< 1.1.5-1.mga8
- python-jupyterlab< 2.2.10-1.mga8
PyPI2 products
- jupyterlab< 1.2.21 | ≥ 2.0.0a0, < 2.2.10 | ≥ 2.3.0a0, < 2.3.2 | ≥ 3.0.0a0, < 3.0.17 | ≥ 3.1.0a0, < 3.1.4 | < 504825938c0abfa2fb8ff8d529308830a5ae42ed | ≥ 3.1, < 3.1.4
- notebook< 5.7.11 | ≥ 6.0.0, < 6.4.1
Jupyter1 product
- jupyterlab< 1.2.21 | ≥ 2.0.0, < 2.2.10 | ≥ 2.3.0, < 2.3.2 | ≥ 3.0.0, < 3.0.17 | ≥ 3.1.0, < 3.1.4
Jupyterlab1 product
- jupyterlab≥ 3.1.0, < 3.1.4 | ≥ 3.0.0, < 3.0.17 | ≥ 2.3.0, < 2.3.2 | ≥ 2.0.0, < 2.2.10 | < 1.2.1
Opensuse1 product
- python-jupyterlab&distro=openSUSE Leap 15.4< 2.2.10-bp154.2.3.1
Suse1 product
- python-jupyterlab&distro=SUSE Package Hub 15 SP4< 2.2.10-bp154.2.3.1
6 vendors · 8 products
References
12 links- github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crxX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42edX Refsource MISCWEBFIXExploitThird Party Advisory
Show all 12 references
- pypi.org/project/notebookPACKAGE