JupyterLab vulnerable to SXSS in Markdown Preview
CVE-2024-22420 · GHSA-4m77-cmpx-vjc4 · published 2024-01-19 · updated 2024-02-10
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.57%
- Fixed in
- 4.0.11
- 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.0.11 or later, and notebook to 7.0.7 or later.
JupyterLab v4.0.11 was patched.
Users can either disable the table of contents extension by running:
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterlab | PyPI | >= 4.0.0, <= 4.0.10 | 4.0.11 |
| notebook | PyPI | >= 7.0.0, <= 7.0.6 | 7.0.7 |
- 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.