degit is vulnerable to Path Traversal
64
CVE Score
Medium
Path Traversal
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.
Upgrade the degit library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
2.1.0 - 3.4.5
Fixed in 3.4.6degit is vulnerable to Path Traversal in versions 2.1.0 - 3.4.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.