CVE-2025-30370: jupyterlab-git has a command injection vulnerability in "Open Git Repository in Terminal"
Vulnerability summary
CVE-2025-30370 is a high (CVSS 7.4) vulnerability in jupyterlab jupyterlab-git. EPSS estimates a 0.76% chance of exploitation in the next 30 days, higher than 56.4% of scored vulnerabilities.
Not severe (CVSS 7.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 03-04-2025PublishedVulnerability first disclosed.
- 04-04-2025Last modifiedVulnerability information updated.
Description
jupyterlab-git is a JupyterLab extension for version control using Git. On many platforms, a third party can create a Git repository under a name that includes a shell command substitution string in the syntax $(<command>). These directory names are allowed in macOS and a majority of Linux distributions. If a user starts jupyter-lab in a parent directory of this inappropriately-named Git repository, opens it, and clicks "Git > Open Git Repository in Terminal" from the menu bar, then the injected command <command> is run in the user's shell without the user's permission. This issue is occurring because when that menu entry is clicked, jupyterlab-git opens the terminal and runs cd <git-repo-path> through the shell to set the current directory. Doing so runs any command substitution strings present in the directory name, which leads to the command injection issue described here. A previous patch provided an incomplete fix. This vulnerability is fixed in 0.51.1.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.4HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H
- NVDNIST7.4HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H
EPSS trend
Probability
0.76%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Increase +0.16 pp
From 0.60% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Jupyterlab1 product
- jupyterlab-git< 0.51.1
PyPI1 product
- jupyterlab-git< 0.51.1
2 vendors · 2 products