CVE-2021-32797: JupyterLab - Stored XSS
- Cve: CVE-2021-32797
- Name: JupyterLab - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary code on the user's system when a malicious notebook is opened.
- Remediation: Update to the latest version of JupyterLab that addresses this issue.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs user 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.0266
- Epss percentile: 0.86076
- Assignee: [email protected]
- Published at: 2021-08-09T21:15:08Z
- Age in days: 1933
- Modified at: 2026-06-17T03:53:38Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32797
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed | nvd | 2021-08-09 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed | nvd | Exploit, Third Party Advisory |
| https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jupyter: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.21 | no | nvd | /v1/products/jupyter/jupyterlab |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jupyterlab/jupyterlab | commit, fix, security_advisory | yes | /v1/repositories/jupyterlab/jupyterlab |
| google/security-research | security_advisory | yes | /v1/repositories/google/security-research |
Index
- Repositories: 314
- Repositories high signal: 157
- Packages: 2
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-08-09
- Remote: yes
- 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, exposed hosts