JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab
JupyterLab's image viewer contains a cross-site scripting (XSS) vulnerability that can be triggered by opening a specially crafted image file and then opening it in a new browser tab. This vulnerability can lead to remote code execution on the JupyterLab server. Fixed versions 4.6.2 and 4.5.10 address this issue. A workaround is to disable the image viewer plugin.
AI Analysis
Technical Summary
The vulnerability in JupyterLab's image viewer allows an attacker to execute cross-site scripting (CWE-79) by crafting a malicious image file that, when opened in the image viewer and then in a new browser tab, can execute arbitrary code on the server. This can lead to remote code execution (RCE) on the JupyterLab server. The issue affects versions prior to 4.6.2 (specifically >=4.6.0 <4.6.2) and versions before 4.5.10. The vulnerability has a high severity rating and is documented under GHSA-gx64-gj6p-pc4c.
Potential Impact
Successful exploitation allows arbitrary code execution on the JupyterLab server, which could compromise the server's integrity and confidentiality. This elevates the risk of full system compromise if the server is exposed to untrusted users.
Mitigation Recommendations
Apply the official patches by upgrading JupyterLab to version 4.6.2 or later, or to 4.5.10 or later. Alternatively, disable the image viewer plugin using the command 'jupyter labextension disable @jupyterlab/imageviewer-extension:plugin' to mitigate the vulnerability until patching is possible.
JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab
Description
JupyterLab's image viewer contains a cross-site scripting (XSS) vulnerability that can be triggered by opening a specially crafted image file and then opening it in a new browser tab. This vulnerability can lead to remote code execution on the JupyterLab server. Fixed versions 4.6.2 and 4.5.10 address this issue. A workaround is to disable the image viewer plugin.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in JupyterLab's image viewer allows an attacker to execute cross-site scripting (CWE-79) by crafting a malicious image file that, when opened in the image viewer and then in a new browser tab, can execute arbitrary code on the server. This can lead to remote code execution (RCE) on the JupyterLab server. The issue affects versions prior to 4.6.2 (specifically >=4.6.0 <4.6.2) and versions before 4.5.10. The vulnerability has a high severity rating and is documented under GHSA-gx64-gj6p-pc4c.
Potential Impact
Successful exploitation allows arbitrary code execution on the JupyterLab server, which could compromise the server's integrity and confidentiality. This elevates the risk of full system compromise if the server is exposed to untrusted users.
Mitigation Recommendations
Apply the official patches by upgrading JupyterLab to version 4.6.2 or later, or to 4.5.10 or later. Alternatively, disable the image viewer plugin using the command 'jupyter labextension disable @jupyterlab/imageviewer-extension:plugin' to mitigate the vulnerability until patching is possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gx64-gj6p-pc4c
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a616bcb9c2644c7f80dbc37
Added to database: 07/23/2026, 01:18:03 UTC
Last enriched: 07/23/2026, 01:22:46 UTC
Last updated: 07/23/2026, 03:51:30 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.