Intel

AIKIDO-2026-11115

degit is vulnerable to Path Traversal

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

64

Medium Risk

This Affects:

JSdegit
2.1.0 - 3.4.5
Fixed in 3.4.6
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.

Who does this affect?

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

Background info

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

How to fix this

Upgrade the degit library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform