JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
jupyterlab
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jupyterlab PyPI |
|
jupyterlab
| Product | Affected | Fixed in |
|---|---|---|
| jupyterlab PyPI |
|
|
| notebook PyPI |
|
|
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.
From the CVE record · GitHub_M
Affected JupyterLab versions do not sanitize the action attribute of HTML forms in untrusted notebooks. A remote attacker can cause code execution if a user opens a malicious notebook.
Anyone running PyPI jupyterlab versions before 1.2.21, 2.2.10, 2.3.2, 3.0.17, or 3.1.4 in the affected release lines, or PyPI notebook versions before 5.7.11 or from 6.0.0 through 6.4.0, should check their installation.