Vulnerability library
Security checkJuly 30, 2026

degit has a Command Injection issue

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmdegit

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for degit has a Command Injection issue and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 30, 2026