Intel

AIKIDO-2026-11115

degit is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 9, 2026
June 9, 2026

64

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the degit library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

2.1.0 - 3.4.5

Fixed in 3.4.6

Background info

degit is vulnerable to Path Traversal in versions 2.1.0 - 3.4.5.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea