Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm🐍 PyPI
Not in CISA KEV
CRITICAL severity

jupyterlab-git extension: Stored XSS leading to RCEGHSA-f962-v9hr-pfg5

CRITICALFix: jupyterlab/jupyterlab-git@c6d37b8

GHSA-f962-v9hr-pfg5 is a critical-severity (CVSS 9) Cross-site Scripting (XSS) vulnerability in @jupyterlab/git. A fix is available for @jupyterlab/git — see the affected versions and patch details below.

Also known asCVE-2026-54527PYSEC-2026-2540PYSEC-2026-2541
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Oct 7, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for GHSA-f962-v9hr-pfg5.

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs43th percentile — riskier than 43% of all scored CVEsHighest risk
0.00%0.34%0.69%1.03%0.4%0.5%0.5%0.5%Aug 26Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

GHSA-f962-v9hr-pfg5 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 383,485 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

3other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
@jupyterlab/gitnpm
928downloads / week

Description

Overview

Amazon Web Services (AWS) Security has identified a stored cross-site scripting (XSS) issue in the jupyterlab-git JupyterLab extension that can lead to remote code execution (RCE). The issue exists in the PlainTextDiff.ts component, where the createHeader() method passes Git filenames directly to innerHTML without sanitization when rendering diffs for renamed files in commit history. This allows an adversary to craft a filename containing arbitrary HTML/JavaScript that executes when another user views the rename diff in the Git History tab.

The issue can be leveraged through the rename history view in the JupyterLab Git panel. An adversary creates a file with a crafted filename containing a JavaScript payload (e.g., <img src=x onerror=eval(atob("base64_payload"))>.py), renames the file in a subsequent commit, and pushes to a shared repository. When a victim clones the repository, navigates to the Git History tab, clicks the rename commit, and then clicks the renamed file to view the diff, the unsanitized filename renders via innerHTML, executing arbitrary JavaScript in the victim's browser session. The injected JavaScript reads the xsrf cookie, opens a JupyterLab terminal via POST /api/terminals, connects via WebSocket, and executes arbitrary shell commands — achieving full RCE. An adversary can leverage this to exfiltrate secrets or credentials from the victim's environment.

Scope of impact

We discovered this issue during internal security testing. The issue is present in the default configuration of JupyterLab when the jupyterlab-git extension is installed.

The attack requires:

  • The adversary to have commit access to a Git repository that the victim has cloned

  • The victim to navigate to the Git History tab, click the rename commit, and click the renamed file to view the diff

The issue could allow an actor who has access to a shared Git repository to execute arbitrary JavaScript in another user's JupyterLab environment by committing a file with a crafted filename, potentially leading to remote code execution with access to user code, data, environment variables, and credentials.

Proof of concept

The issue exists in the createHeader() method where filenames from rename history are passed directly to innerHTML without sanitization:

[1] https://github.com/jupyterlab/jupyterlab-git/blob/main/src/components/diff/PlainTextDiff.ts#L214

Attack flow:

  1. An adversary creates a file with a crafted filename containing a JavaScript payload, e.g., <img src=x onerror=eval(atob("base64_payload"))>.py

  2. The adversary renames the file in a subsequent commit and pushes both commits to a shared Git repository

  3. The victim clones or pulls the repository and navigates to the Git History tab in JupyterLab

  4. The victim clicks the rename commit, then clicks the renamed file to view the diff

  5. The createHeader() method constructs a diff header using string concatenation with the unsanitized filename and assigns the result to innerHTML

  6. The injected JavaScript executes in the victim's browser session, reads the _xsrf cookie, sends a POST request to /api/terminals to open a JupyterLab terminal, connects via WebSocket, and executes arbitrary shell commands

Proof-of-concept mitigation

The issue can be mitigated by replacing innerHTML with textContent for filename rendering in the createHeader() method of PlainTextDiff.ts. Alternatively, proper HTML sanitization (escaping <, >, &, ", ') can be applied before inserting user-controlled filenames into the DOM.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
📦npm@jupyterlab/git≥ 0.30.0-beta.3&&< 0.54.00.54.0npm install @jupyterlab/git@0.54.0
🐍PyPIjupyterlab-git≥ 0.30.0b3&&< 0.54.00.54.0pip install --upgrade 'jupyterlab-git==0.54.0'
🐍PyPIjupyterlab-git-core≥ 0.30.0b3&&< 0.54.00.54.0pip install --upgrade 'jupyterlab-git-core==0.54.0'

Affected Products

1 product · 3 configurations
Application
jupyterlab-gitjupyter
≥ 0.30.1 && < 0.54.0
1 version
0.30.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @jupyterlab/git, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update @jupyterlab/git to 0.54.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-f962-v9hr-pfg5 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

Overview Amazon Web Services (AWS) Security has identified a stored cross-site scripting (XSS) issue in the jupyterlab-git JupyterLab extension that can lead to remote code execution (RCE). The issue exists in the PlainTextDiff.ts component, where the createHeader() method passes Git filenames directly to innerHTML without sanitization when rendering diffs for renamed files in commit history. This allows an adversary to craft a filename containing arbitrary HTML/JavaScript that executes when another user views the rename diff in the Git History tab. The issue can be leveraged through the ren
O3 Security · Impact-Aware SCA

Is GHSA-f962-v9hr-pfg5 in your dependencies?

Find it across npm, PyPI, including transitive dependencies.

jupyterlab-git extension: Stored XSS leading to RCE