network-ai is vulnerable to Path Traversal
87
CVE Score
High
Path Traversal
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.
Upgrade the network-ai package to 5.15.5 or later.
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.
3.0.0 - 5.15.4
Fixed in 5.15.5network-ai is vulnerable to Path Traversal in versions 3.0.0 - 5.15.4.
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.