CVE-2025-30370 json
jupyterlab-git has a command injection vulnerability in "Open Git Repository in Terminal"
published 2025-04-03 19 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-9739 , GHSA-cj5w-8mjf-r5f8 , PYSEC-2026-1483
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi jupyterlab-git 0.51.1
- jupyter jupyterlab-git 0.51.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-30370 updated cvss 7.4
jupyterlab-git: jupyterlab-git has a command injection vulnerability in "Open Git Repository in Terminal"
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-notebook-controller-rhel8, rhoai/odh-kf-notebook-controller-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jupyterlab/jupyterlab-git/security/advisories/GHSA-cj5w-8mjf-r5f8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H |
| OSV | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | jupyterlab-git | <0.51.1 |
0.51.1 |
Affected products
- jupyterlab jupyterlab-git
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/jupyterlab/jupyterlab-git/pull/1196
web
-
github.com
/jupyterlab/jupyterlab-git/commit/b46482993f76d3a546015c6a94ebed8b77fc2376
web
-
github.com
/jupyterlab/jupyterlab-git/security/advisories/GHSA-cj5w-8mjf-r5f8
exploit, web
-
github.com
/jupyterlab/jupyterlab-git/blob/7eb3b06f0092223bd5494688ec264527bbeb2195/src/commandsAndMenu.tsx#L175-L184
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-30370
advisory
-
github.com
/jupyterlab/jupyterlab-git
package
-
pypi.org
/project/jupyterlab-git
package
-
github.com
/advisories/GHSA-cj5w-8mjf-r5f8
advisory
Sources
- CVE List CVE-2025-30370
- GitHub Advisory GHSA-cj5w-8mjf-r5f8
- NVD CVE-2025-30370
- OSV PYSEC-2026-1483
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.