CVE-2025-30370: jupyterlab jupyterlab-git OS Command Injection
Vulnerability summary
CVE-2025-30370 is a high (CVSS 7.4) OS Command Injection vulnerability in jupyterlab jupyterlab-git. EPSS estimates a 0.58% chance of exploitation in the next 30 days, higher than 46.9% of scored vulnerabilities.
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.58%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
0.00 pp
From 0.58% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Jupyterlab1 product
- jupyterlab-git< 0.51.1
PyPI1 product
- jupyterlab-git< 0.51.1
2 vendors · 2 products