Advisory

GHSA-77c7-pq4r-6mcq

Also known as: 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

High Basis: The source's own band: HIGH

Dates

Published
2026-06-09 06:31 UTC
Modified
2026-07-30 18:56 UTC

Affected packages and fixes

degit

npm · All systems

Affected

  • introduced 0, fixed 2.8.6 (semver)

Fixed versions

2.8.6

Fix

degit

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.3.1 (semver)

Fixed versions

3.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences