PyPI: jupyterlab

GHSA-vmhf-c436-hxj4

Safety vulnerability ID: SFTY-20260619-94530

Affected versions of the JupyterLab package are vulnerable to Stored Cross-site Scripting (XSS) due to unsanitized URI protocols in package metadata. The `jupyterlab/extensions/pypi.py` module copies a PyPI package's URL directly into the `homepage_url`, which is then rendered by the frontend in `packages/extensionmanager/src/widget.tsx` without validating the protocol. An attacker can exploit this by publishing a malicious package to PyPI with a `javascript:` URL in its metadata; when a user clicks the extension name in JupyterLab's Extension Manager, the attacker-controlled JavaScript executes in the JupyterLab origin.

Created at: Jun 19, 2026Updated at: Jun 19, 2026

Overview

JupyterLab: Stored XSS in extension manager through package metadata unsanitized URI protocol

Advisory

jupyterlab – Improper Neutralization of Encoded URI Schemes in a Web Page

Affected Package

Affecting jupyterlab package, versions
<= 4.5.8

Also affects

---

How to Fix

Upgrade
jupyterlab
to
4.5.9
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more