HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering
CVE-2024-43805 · GHSA-9q39-rmj3-p4r2 · published 2024-08-29
- Severity
- High
- CVSS score
- 7.6
- Chance of exploitation (EPSS)
- 0.40%
- Fixed in
- 4.2.5
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
The vulnerability depends on user interaction by opening a malicious notebook with Markdown cells, or Markdown file using JupyterLab preview feature. A malicious user can access any data that the attacked user has access to as well as perform arbitrary requests acting as the attacked user.
Upgrade jupyterlab to 4.2.5 or later, and notebook to 7.2.2 or later.
JupyterLab v3.6.8, v4.2.5 and Jupyter Notebook v7.2.2 were patched.
There is no workaround for the underlying DOM Clobbering susceptibility. However, select plugins can be disabled on deployments which cannot update in a timely fashion to minimise the risk. These are: @jupyterlab/mathjax-extension:plugin - users will loose ability to preview mathematical equations - users will loose ability to open Markdown previews @jupyterlab/mathjax2-extension:plugin (if installed with optional jupyterlab-mathjax2 package) - an older version of the mathjax plugin for JupyterLab 4.x To disable these extensions run: To confirm that the plugins were disabled run:
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterlab | PyPI | <= 3.6.7 | 3.6.8 |
| jupyterlab | PyPI | >= 4.0.0, <= 4.2.4 | 4.2.5 |
| notebook | PyPI | >= 7.0.0, <= 7.2.1 | 7.2.2 |
- 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.