CVE-2026-58481: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Jovancoding Network-AI
Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.12.2, `AgentRuntime` promises scoped file access under a configured sandbox `basePath`, but its path containment checks use raw string prefix tests. A sandbox base such as `/tmp/network-ai-sandbox` also matches a sibling path such as `/tmp/network-ai-sandbox_evil/secret.txt`. An agent/user that can call `AgentRuntime.readFile()` or `AgentRuntime.listDir()` can read or list files outside the intended sandbox when the target path is in a sibling directory sharing the base path prefix. This breaks the documented sandbox boundary. The issue is fixed in v5.12.2. `SandboxPolicy.resolvePath()` and `isPathAllowed()` now use separator-anchored prefix checks (`resolved === base || resolved.startsWith(base + path.sep)`) for both the allow-list and block-list. A sibling directory that merely shares a name prefix (e.g. `/srv/app-evil` vs base `/srv/app`) is no longer treated as in-scope.
AI Analysis
Technical Summary
Network-AI versions before 5.12.2 use raw string prefix tests to enforce sandbox directory boundaries in AgentRuntime's file access methods. This approach incorrectly allows access to sibling directories that share the sandbox base path prefix, enabling path traversal outside the intended restricted directory. The vulnerability affects calls to AgentRuntime.readFile() and AgentRuntime.listDir(), breaking the documented sandbox boundary. The fix in version 5.12.2 updates SandboxPolicy.resolvePath() and isPathAllowed() to use separator-anchored prefix checks, ensuring only the exact base directory or its true subdirectories are accessible, thus mitigating the path traversal issue.
Potential Impact
An attacker or agent with permission to invoke AgentRuntime.readFile() or AgentRuntime.listDir() can bypass sandbox restrictions and access files outside the intended directory. This leads to unauthorized disclosure of potentially sensitive files. The vulnerability does not impact integrity or availability but has a high confidentiality impact. The CVSS 3.1 base score is 6.5 (medium severity), reflecting local attack vector with low complexity and no user interaction required.
Mitigation Recommendations
Upgrade Network-AI to version 5.12.2 or later, where the path traversal vulnerability is fixed by improved path containment checks. Versions prior to 5.12.2 are vulnerable. No other mitigations are documented. Patch status is not explicitly stated but the fix is included in version 5.12.2, so applying this official update is the recommended remediation.
CVE-2026-58481: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Jovancoding Network-AI
Description
Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.12.2, `AgentRuntime` promises scoped file access under a configured sandbox `basePath`, but its path containment checks use raw string prefix tests. A sandbox base such as `/tmp/network-ai-sandbox` also matches a sibling path such as `/tmp/network-ai-sandbox_evil/secret.txt`. An agent/user that can call `AgentRuntime.readFile()` or `AgentRuntime.listDir()` can read or list files outside the intended sandbox when the target path is in a sibling directory sharing the base path prefix. This breaks the documented sandbox boundary. The issue is fixed in v5.12.2. `SandboxPolicy.resolvePath()` and `isPathAllowed()` now use separator-anchored prefix checks (`resolved === base || resolved.startsWith(base + path.sep)`) for both the allow-list and block-list. A sibling directory that merely shares a name prefix (e.g. `/srv/app-evil` vs base `/srv/app`) is no longer treated as in-scope.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Network-AI versions before 5.12.2 use raw string prefix tests to enforce sandbox directory boundaries in AgentRuntime's file access methods. This approach incorrectly allows access to sibling directories that share the sandbox base path prefix, enabling path traversal outside the intended restricted directory. The vulnerability affects calls to AgentRuntime.readFile() and AgentRuntime.listDir(), breaking the documented sandbox boundary. The fix in version 5.12.2 updates SandboxPolicy.resolvePath() and isPathAllowed() to use separator-anchored prefix checks, ensuring only the exact base directory or its true subdirectories are accessible, thus mitigating the path traversal issue.
Potential Impact
An attacker or agent with permission to invoke AgentRuntime.readFile() or AgentRuntime.listDir() can bypass sandbox restrictions and access files outside the intended directory. This leads to unauthorized disclosure of potentially sensitive files. The vulnerability does not impact integrity or availability but has a high confidentiality impact. The CVSS 3.1 base score is 6.5 (medium severity), reflecting local attack vector with low complexity and no user interaction required.
Mitigation Recommendations
Upgrade Network-AI to version 5.12.2 or later, where the path traversal vulnerability is fixed by improved path containment checks. Versions prior to 5.12.2 are vulnerable. No other mitigations are documented. Patch status is not explicitly stated but the fix is included in version 5.12.2, so applying this official update is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T20:21:25.811Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5e50312a4a8d59895ee3d6
Added to database: 07/20/2026, 16:43:29 UTC
Last enriched: 07/20/2026, 16:57:58 UTC
Last updated: 07/21/2026, 03:42:25 UTC
Views: 14
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.