Intel

AIKIDO-2026-266597

network-ai is vulnerable to Path Traversal

CVE-2026-120313Published Nov 2, 2026
November 2, 2026

87

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

Before the fix, InputSanitizer.sanitizePath validated path containment with a bare startsWith(resolvedBase) string prefix, so a path in a sibling directory whose name shares the base's name prefix, for example /data/project-evil against base /data/project, passed as in-scope and was returned as validated. Any caller that passes this helper a path supplied by a remote client, signed-in user, or agent before a file read, write, or listing lets that party reach files outside the intended directory. The fix computes containment with path.relative and throws the PATH_TRAVERSAL SecurityError when the result starts with .. or sits on another drive, so sibling-prefix escapes no longer pass.

How do I fix this?

Upgrade the network-ai package to 5.15.5 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and call InputSanitizer.sanitizePath on paths supplied by a remote client, signed-in user, or agent.

Package

Versions

3.0.0 - 5.15.4

Fixed in 5.15.5

Background info

network-ai is vulnerable to Path Traversal in versions 3.0.0 - 5.15.4.

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