# CVE-2021-32797: JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.66%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-09T20:45:10.000Z
- Modified: 2026-09-08T08:48:23.855Z
- Also known as: GHSA-4952-p58q-6crx, BIT-JUPYTERLAB-2021-32797, PYSEC-2021-130, PYSEC-2026-688
- Weaknesses: CWE-75, CWE-79, CWE-87
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyterlab 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
- jupyterlab (PyPI): before 1.2.21; from 2.0.0a0 before 2.2.10; from 2.3.0a0 before 2.3.2; from 3.0.0a0 before 3.0.17; from 3.1.0a0 before 3.1.4; before 504825938c0abfa2fb8ff8d529308830a5ae42ed; from 2 before 2.2.10; from 2.3 before 2.3.2; from 3 before 3.0.17; from 3.1 before 3.1.4
- notebook (PyPI): before 5.7.11; from 6.0.0 before 6.4.1
- jupyter jupyterlab: before 1.2.21; from 2.0.0 before 2.2.10; from 2.3.0 before 2.3.2; from 3.0.0 before 3.0.17; from 3.1.0 before 3.1.4
- jupyterlab (Bitnami): before 1.2.21; from 2.0.0 before 2.2.10; from 2.3.0 before 2.3.2; from 3.0.0 before 3.0.17; from 3.1.0 before 3.1.4

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- PyPA Advisory Database: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed> (exploit, advisory, fix, third-party-advisory, web)
- <https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx> (advisory, third-party-advisory, web)
- <https://github.com/google/security-research/security/advisories/GHSA-c469-p3jp-2vhx> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32797> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-32797](https://www.cve.org/CVERecord?id=CVE-2021-32797), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4952-p58q-6crx](https://github.com/advisories/GHSA-4952-p58q-6crx), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32797](https://nvd.nist.gov/vuln/detail/CVE-2021-32797), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-130](https://osv.dev/vulnerability/PYSEC-2021-130), CC-BY-4.0, modified 2026-07-06
- PyPA Advisory Database: [PYSEC-2026-688](https://osv.dev/vulnerability/PYSEC-2026-688), CC-BY-4.0, modified 2026-07-06
- Bitnami Vulnerability Database: [BIT-JUPYTERLAB-2021-32797](https://osv.dev/vulnerability/BIT-JUPYTERLAB-2021-32797), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-32797 · Whole record: https://cve.day/CVE-2021-32797.json · Rebuilt by cve.day 2026-11-25T22:58:03.078Z
