Vulnerabilities in pkg:npm/degit
PACKAGECVE-2026-11572 is a HIGH (CVSS 8.8) degit has a command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Degit libraries in the npm ecosystem. The issue involves degit has a command injection issue. Remediation is available by upgrading affected packages to version 2.8.6, 3.3.1.
pkg:npm/degit
Vulnerability advisories affecting package pkg:npm/degit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-77c7-pq4r-6mcq | CVE-2026-11572 | HIGH | degit has a Command Injection issue |
CVE-2026-11572 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-11572
To remediate this vulnerability, upgrade all affected Degit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install degit@2.8.6
npm install degit@3.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls degit
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-11572, inspect your project dependencies using npm:
npm ls degit
Analyze the terminal output to locate any version of Degit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.6), your application is affected.
Note: The npm ls degit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Degit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-11572 Affected Degit Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2026-11572?
Which Degit versions are affected?
What version fixes CVE-2026-11572?
Is degit affected?
What is the CVSS score of CVE-2026-11572?
What CWE is associated with CVE-2026-11572?
How can I check npm dependencies for CVE-2026-11572?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-77c7-pq4r-6mcq",
"modified" : "2026-07-30T18:35:51Z",
"published" : "2026-06-09T06:31:59Z",
"aliases" : [ "CVE-2026-11572" ],
"summary" : "degit has a Command Injection issue",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "degit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "degit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-11572"
}, {
"type" : "WEB",
"url" : "https://github.com/Rich-Harris/degit/commit/4ac99e4a4c3f53ca3b5c997bcd7542742ad0c443"
}, {
"type" : "WEB",
"url" : "https://github.com/Rich-Harris/degit/commit/d55bfd7cea79c0b387f69ec8477b6c34abf9f226"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/badp3te/cf22a939eedbd3d8ade9123827d61639"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Rich-Harris/degit"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-DEGIT-17116207"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-30T18:35:51Z",
"nvd_published_at" : "2026-06-09T06:16:53Z"
}
}