Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jupyterlab | jupyterlab-git | >= 0.30.0b3, < 0.54.0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @jupyterlab/git | >= 0.30.0-beta.3, < 0.54.0 | 0.54.0 | GHSA-f962-v9hr-pfg5 |
| PyPI | jupyterlab-git | >= 0.30.0b3, < 0.54.0 | 0.54.0 | GHSA-f962-v9hr-pfg5 |
| PyPI | jupyterlab-git-core | >= 0.30.0b3, < 0.54.0 | 0.54.0 | GHSA-f962-v9hr-pfg5 |