Skip to content
OpenAdvisories
High · 8.8 CVE-2026-11572 EUVD-2026-35349GHSA-77c7-pq4r-6mcq

degit has a Command Injection issue

Published Jun 9, 2026 · Updated Jun 9, 2026 · Assigned by snyk

Description

Versions of the package degit before 2.8.6, from 3.0.0 and before 3.3.1 are vulnerable to Command Injection due to improper sanitisation of user input for git shell commands directly invoked with exec() method by _cloneWithGit() and fetchRefs() functions. An attacker can execute arbitrary operating system commands as the process user by supplying a specially crafted git repository name.

Affected products

VendorProductAffectedFixed
— degit < 2.8.6, 3.0.0 – < 3.3.1 2.8.6

Affected packages

EcosystemPackageAffectedFixedRecord
npm degit < 2.8.6 2.8.6 GHSA-77c7-pq4r-6mcq
npm degit >= 3.0.0, < 3.3.1 3.3.1 GHSA-77c7-pq4r-6mcq

References