JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab
High severity
GitHub Reviewed
Published
Jul 21, 2026
in
jupyterlab/jupyterlab
•
Updated Aug 12, 2026
Package
Affected versions
>= 4.6.0, <= 4.6.1
<= 4.5.9
Patched versions
4.6.2
4.5.10
Description
Published to the GitHub Advisory Database
Jul 22, 2026
Reviewed
Jul 22, 2026
Last updated
Aug 12, 2026
JupyterLab's image viewer allows for cross-site scripting (XSS) when a specially-crafted image file is opened through the image viewer and then opened in a new tab. This XSS issue can be used to cause remote code execution (RCE) on the JupyterLab server.
Impact
This vulnerability allows for arbitrary code execution.
Patches
JupyterLab
v4.6.2andv4.5.10contain the patch.Workarounds
Disable the image viewer plugin:
Confirm with:
References