Vulnerability · Published Aug 9, 2021 · Assigned by GitHub_M
CVE-2021-32797JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
High 7.4
In plain English
A high-severity cross-site scripting in jupyterlab from jupyterlab. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | jupyterlab | 1.2.21 | GHSA-4952-p58q-6crx |
| PyPI | jupyterlab | 2.2.10 | GHSA-4952-p58q-6crx |
| PyPI | jupyterlab | 2.3.2 | GHSA-4952-p58q-6crx |
| PyPI | jupyterlab | 3.0.17 | GHSA-4952-p58q-6crx |
| PyPI | jupyterlab | 3.1.4 | GHSA-4952-p58q-6crx |
| PyPI | jupyterlab | 1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4 | PYSEC-2021-130 |
| PyPI | notebook | 6.4.1 | GHSA-4952-p58q-6crx |
| PyPI | notebook | 5.7.11, 6.4.1 | PYSEC-2026-688 |
| PyPI | notebook | 5.7.11 | GHSA-4952-p58q-6crx |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N