IA Squad
SearchPT
python · jupyterlab-gitCritical

jupyterlab-git: Stored XSS via unsanitized filenames in PlainTextDiff.ts

A stored XSS vulnerability was found in jupyterlab-git's PlainTextDiff.

20 Jun 2026Read 1 minSeverity: act now

What changed

A stored XSS vulnerability was found in jupyterlab-git's PlainTextDiff.ts createHeader() method. It passes Git filenames directly to innerHTML without sanitization when rendering rename diffs, enabling RCE in the victim's JupyterLab session.

Who it affects

Users of JupyterLab with jupyterlab-git installed who clone or pull repositories from shared sources and view rename diffs in the Git History tab.

What to do today

Update jupyterlab-git to a patched version once available, or mitigate by replacing innerHTML with textContent or sanitizing filenames in PlainTextDiff.ts createHeader().

The trail
Collected Audited Written Published