JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
CVE-2021-32797 · GHSA-4952-p58q-6crx · published 2021-08-23 · updated 2024-11-18
- Severity
- Medium
- CVSS score
- 7.4
- Chance of exploitation (EPSS)
- 2.7%
- Fixed in
- 3.1.4
Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.
Upgrade jupyterlab to 3.1.4 or later, and notebook to 6.4.1 or later.
Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterlab | PyPI | < 1.2.21 | 1.2.21 |
| jupyterlab | PyPI | >= 2.0.0a0, < 2.2.10 | 2.2.10 |
| jupyterlab | PyPI | >= 2.3.0a0, < 2.3.2 | 2.3.2 |
| jupyterlab | PyPI | >= 3.0.0a0, < 3.0.17 | 3.0.17 |
| jupyterlab | PyPI | >= 3.1.0a0, < 3.1.4 | 3.1.4 |
| notebook | PyPI | < 5.7.11 | 5.7.11 |
| notebook | PyPI | >= 6.0.0, < 6.4.1 | 6.4.1 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- CriticalImproper Input Validation in Jupyter Notebookipython, notebook
- HighJupyterLab: Cross-site scripting (XSS) in JupyterLab via notebook cells pasted from the system clipboardjupyterlab, jupyterlab, notebook
- HighJupyterLab: Image viewer allows XSS when opening malicious image in new browser tabjupyterlab, jupyterlab
- HighJupyterLab: Cross-site scripting (XSS) via crafted settings file (`overrides.json`)jupyterlab, jupyterlab
- HighJupyterLab's command linker attributes in HTML enable one-click command execution from untrusted contentjupyterlab, notebook
- HighJupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST requestjupyterlab
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.