degit is vulnerable to Path Traversal
64
Medium Risk
The remove action in degit.json resolves each requested path with path.resolve against the scaffold destination but, before the fix, did not verify the result stayed inside that directory. A repository can list traversal segments such as ../sibling so degit deletes files or directories outside the cloned tree after scaffolding. That enables arbitrary local deletion when a user runs degit on an untrusted template. The fix normalizes the destination root, rejects escaped paths with a warning, and skips the delete.
You are affected if you are using a version that falls within the vulnerable range.
degit is vulnerable to Path Traversal in versions 2.1.0 - 3.4.5.
Upgrade the degit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant