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.
Recommendation
Update the degit package to the latest compatible version. Followings are version details:
Affected version(s): **>= 3.0.0, < 3.3.1 < 2.8.6** Patched version(s): **3.3.1 2.8.6**
References
Related Issues
- electerm has Command Injection in File System Operations (rmrf, mv, cp) - CVE-2026-49255
- automagik-genie has a command injection vulnerability - CVE-2026-30635
- electerm has Command Injection via runLinux funtion - CVE-2026-41501
- Preact has JSON VNode Injection issue - CVE-2026-22028
You might also like:
- Tags:
- npm
- degit
Anything's wrong? Let us know Last updated on July 30, 2026


