Live threats

All CVEs / jupyterlab

CVE-2025-30370jupyterlab-git

High 7.4

Priority
44
CVSS 3.1
7.4
EPSS
—
Auth required
Yes
Published
Apr 3, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for jupyterlab-git.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI jupyterlab-git < 0.51.1 0.51.1 pip install "jupyterlab-git>=0.51.1"
PyPI jupyterlab-git < 0.51.1 0.51.1 pip install "jupyterlab-git>=0.51.1"

Per OSV / GitHub Advisories (GHSA-cj5w-8mjf-r5f8, PYSEC-2026-1483). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.