CVE-2026-11572 Details
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.
A command injection vulnerability has been identified in the degit package, specifically in versions prior to 2.8.6, as well as in versions 3.0.0 prior to 3.3.1. The vulnerability arises from inadequate sanitization of user input for git repository names, which is directly passed to the exec() method. This flaw allows attackers to execute arbitrary operating system commands as the user running the process. The issue is exploited by supplying a specially crafted repository name that includes shell metacharacters, which are then evaluated by the shell before being passed to git.
Users are advised to upgrade to degit version 2.8.6 or 3.3.1 and above, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 9, 2026CISA-ADP
Assessed Jun 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/badp3te/cf22a939eedbd3d8ade9123827d61639 | CISA-ADP | ExploitTechnical Analysis |
| https://gist.github.com/badp3te/cf22a939eedbd3d8ade9123827d61639 | [email protected] | ExploitTechnical Analysis |
| https://github.com/Rich-Harris/degit/commit/4ac99e4a4c3f53ca3b5c997bcd7542742ad0c443 | [email protected] | Source CodeVendor |
| https://github.com/Rich-Harris/degit/commit/d55bfd7cea79c0b387f69ec8477b6c34abf9f226 | [email protected] | Source CodeVendor |
| https://security.snyk.io/vuln/SNYK-JS-DEGIT-17116207 | [email protected] | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| degit | <= 2.8.4 (semver) >= 3.0.0, < 3.3.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | New CVE Received | [email protected] |
Volerion