CVE-2021-32797
CRITICAL 9.6CVSS 3.1JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
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.
- Published
- 9 Aug 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-75CWE-79CWE-87
- Also known as
- BIT-jupyterlab-2021-32797GHSA-4952-p58q-6crxPYSEC-2021-130PYSEC-2026-688
- Sources
- NVDJSONOSV GHSA-4952-p58q-6crxJSONOSV PYSEC-2021-130JSONOSV PYSEC-2026-688JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
< 1.2.21 | 1.2.21 |
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.2.10 | 2.2.10 |
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.3.2 | 2.3.2 |
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.17 | 3.0.17 |
| NVD | jupyter | jupyterlabcpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:* |
>= 3.1.0, < 3.1.4 | 3.1.4 |
| OSV | PyPI | jupyterlab | < 1.2.21 | 1.2.21 |
| OSV | PyPI | jupyterlab | >= 2.0.0a0, < 2.2.10 | 2.2.10 |
| OSV | PyPI | jupyterlab | >= 2.3.0a0, < 2.3.2 | 2.3.2 |
| OSV | PyPI | jupyterlab | >= 3.0.0a0, < 3.0.17 | 3.0.17 |
| OSV | PyPI | jupyterlab | >= 3.1.0a0, < 3.1.4 | 3.1.4 |
| OSV | PyPI | notebook | < 5.7.11 | 5.7.11 |
| OSV | PyPI | notebook | >= 6.0.0, < 6.4.1 | 6.4.1 |
| OSV | PyPI | jupyterlab | < 1.2.21; >= 2, < 2.2.10; >= 2.3, < 2.3.2; >= 3, < 3.0.17; >= 3.1, < 3.1.4 | 1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4 |
| OSV | PyPI | notebook | < 5.7.11; >= 6.0.0, < 6.4.1 | 5.7.11, 6.4.1 |
References
- https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed · Exploit, Third Party Advisory, WEB, FIX
- https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx · Third Party Advisory, WEB, ADVISORY
- https://github.com/google/security-research/security/advisories/GHSA-c469-p3jp-2vhx · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32797 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab/PYSEC-2021-130.yaml · WEB
- https://pypi.org/project/notebook · PACKAGE
- https://github.com/advisories/GHSA-4952-p58q-6crx · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Aug 2021)