GHSA-77c7-pq4r-6mcq

Suggest an improvement
Source
https://github.com/advisories/GHSA-77c7-pq4r-6mcq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-77c7-pq4r-6mcq/GHSA-77c7-pq4r-6mcq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-77c7-pq4r-6mcq
Aliases
Published
2026-06-09T06:31:59Z
Modified
2026-07-30T18:56:41Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.4 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-77",
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-30T18:35:51Z",
    "nvd_published_at":  "2026-06-09T06:16:53Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / degit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.8.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-77c7-pq4r-6mcq/GHSA-77c7-pq4r-6mcq.json"

npm / degit

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-77c7-pq4r-6mcq/GHSA-77c7-pq4r-6mcq.json"