CVE-2021-32797: JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
Impact
Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.
Patches
Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.
References
OWASP Page on Restricting Form Submissions
For more information
If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list security@ipython.org.
Credit: Guillaume Jeanne from Google
Other sources
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.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is CVE-2021-32797?
CVE-2021-32797 is a vulnerability in JupyterLab that allows untrusted notebooks to execute code on load.
How does CVE-2021-32797 affect JupyterLab?
CVE-2021-32797 affects JupyterLab versions up to 1.2.21, 2.0.0 to 2.2.10, 2.3.0 to 2.3.2, 3.0.0 to 3.0.17, and 3.1.0 to 3.1.4.
What is the severity of CVE-2021-32797?
CVE-2021-32797 has a severity rating of 9.6, which is classified as critical.
How can the CVE-2021-32797 vulnerability be exploited?
The CVE-2021-32797 vulnerability can be exploited by using an untrusted notebook to trigger the execution of code on load in JupyterLab.
What is the Common Weakness Enumeration (CWE) ID for CVE-2021-32797?
The Common Weakness Enumeration (CWE) ID for CVE-2021-32797 is CWE-79.