Intel

AIKIDO-2026-993827

jupyterlab is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-6966-vjj6-99xv Published 2 days ago

81

High Risk

This Affects:

PYTHONjupyterlab
4.5.0 - 4.5.10
Fixed in 4.5.11
4.6.0 - 4.6.3
Fixed in 4.6.4
Are you affected? Scan for Free

TL;DR

JupyterLab's system clipboard paste path parses clipboard text as cell JSON and inserts the cells without clearing metadata.trusted, so a pasted payload can declare its own output as trusted. JupyterLab does not sanitize trusted output and runs the <script> elements it contains, so pasting the cell runs untrusted JavaScript in the JupyterLab origin. The fix strips the trusted flag from cells pasted through the system clipboard so their output is sanitized like any other externally sourced content.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you paste notebook cells from the system clipboard with useSystemClipboardForCells enabled.

Background info

jupyterlab is vulnerable to Cross-Site Scripting (XSS) in versions 4.5.0 - 4.5.10 and 4.6.0 - 4.6.3.

How to fix this

Upgrade the jupyterlab library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform