Intel

AIKIDO-2026-549562

enhanced-resolve is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 5, 2026
August 5, 2026

30

CVE Score

Low

Path Traversal

Are you affected? Scan for Free

TL;DR

The RestrictionsPlugin in enhanced-resolve confines module resolution to configured restrictions paths using an isInside containment check. That check treats a backslash as a path separator on every platform, so on posix systems a resolved path that begins with a restriction string followed by a backslash is accepted even though it names a sibling outside the restricted directory. This lets resolution succeed for files outside the intended boundary, defeating the confinement the restrictions option is meant to enforce. The fix aligns containment with path.win32 and path.posix semantics so a backslash stays an ordinary filename character on posix and the boundary is enforced correctly.

How do I fix this?

Upgrade the enhanced-resolve library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you configure the restrictions option with string path prefixes to confine module resolution.

Versions

4.2.0 - 5.24.3

Fixed in 5.24.4

Background info

enhanced-resolve is vulnerable to Path Traversal in versions 4.2.0 - 5.24.3.

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