JupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST request
CVE-2026-42266 · GHSA-37w4-hwhx-4rc4 · published 2026-05-05 · updated 2026-06-08
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 5.7%
- Fixed in
- 4.5.7
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
An authenticated attacker - such as a student in a shared JupyterHub environment or a user in a multi-tenant JupyterLab deployment - can escalate their privileges. This might allow for data exfiltration, lateral movement within the network, and persistent compromise of the server infrastructure.
Upgrade jupyterlab to 4.5.7 or later.
JupyterLab v4.5.7 contains the patch. Users of applications that depend on JupyterLab, such as Notebook v7+, should update jupyterlab package too.
Switch to read-only extension manager by adding the following command line option: --LabApp.extension_manager=readonly or the following traitlet: c.LabApp.extension_manager = 'readonly' You can confirm that the read-only manager is in use from GUI: Note: configuration of a PyPI proxy with allow-listed packages is not sufficient to protect from this vulnerability.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterlab | PyPI | >= 4.0.0, <= 4.5.6 | 4.5.7 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- 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
- HighJupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSSjupyterlab, notebook
- HighHTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobberingjupyterlab, jupyterlab, notebook
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.