Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. degit
  4. ›
  5. CVE-2026-11572

CVE-2026-11572: degit has a Command Injection issue

June 9, 2026 (updated July 30, 2026)

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.

References

  • gist.github.com/badp3te/cf22a939eedbd3d8ade9123827d61639
  • github.com/Rich-Harris/degit/commit/4ac99e4a4c3f53ca3b5c997bcd7542742ad0c443
  • github.com/Rich-Harris/degit/commit/d55bfd7cea79c0b387f69ec8477b6c34abf9f226
  • github.com/advisories/GHSA-77c7-pq4r-6mcq
  • nvd.nist.gov/vuln/detail/CVE-2026-11572
  • security.snyk.io/vuln/SNYK-JS-DEGIT-17116207

Code Behaviors & Features

Detect and mitigate CVE-2026-11572 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.6, all versions starting from 3.0.0 before 3.3.1

Fixed versions

  • 2.8.6
  • 3.3.1

Solution

Upgrade to versions 2.8.6, 3.3.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/degit/CVE-2026-11572.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:19 +0000.