JupyterLab Git: Stored XSS leading to RCE
jupyterlab-git
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jupyterlab-git PyPI |
|
|
| jupyterlab-git-core PyPI |
|
|
| @jupyterlab/git npm |
jupyterlab-git
| Product | Affected | Fixed in |
|---|---|---|
| jupyterlab-git PyPI |
|
|
| jupyterlab-git-core PyPI |
|
|
| @jupyterlab/git npm |
≥ 0.30.0-beta.3 · < 0.54.0
|
JupyterLab Git is a Git extension for JupyterLab. From 0.30.0b3 before 0.54.0, the PlainTextDiff.ts createHeader() method passes Git filenames directly to innerHTML when rendering renamed files in commit history, allowing a crafted filename to execute JavaScript when a victim views the rename diff in the Git History tab. This issue is fixed in version 0.54.0.
From the CVE record · GitHub_M
JupyterLab Git passes Git filenames to innerHTML when rendering renamed files in commit history. An attacker can use a crafted filename to execute JavaScript when a victim views the rename diff in the Git History tab.
Check installations of PyPI jupyterlab-git or jupyterlab-git-core from 0.30.0b3 up to but not including 0.54.0, or npm @jupyterlab/git from 0.30.0-beta.3 up to but not including 0.54.0.