CVE-2021-32797JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
- 7.4HighCVSS base score
- 2.7%Exploitation in 30 daysEPSS · top 14% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVDNVD · Modified | 3.1 | Critical9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.7% · top 14% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
Affected products
- affected >= 3.1.0, < 3.1.4
- affected >= 3.0.0, < 3.0.17
- affected >= 2.3.0, < 2.3.2
- affected >= 2.0.0, < 2.2.10
- affected < 1.2.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIjupyterlabGHSA-4952-p58q-6crx (opens in a new tab)
- PyPInotebookGHSA-4952-p58q-6crx (opens in a new tab)
References
References2
- https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0107 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4952-p58q-6crx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-32797)Record last updated .