Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58481: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Jovancoding Network-AI

0
Medium
VulnerabilityCVE-2026-58481cvecve-2026-58481cwe-22cwe-23
Published: 07/20/2026 (07/20/2026, 16:30:15 UTC)
Source: CVE Database V5
Vendor/Project: Jovancoding
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected software

network-ai
pkg:npm/network-ai
Affected versions
<5.12.2

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

AILast updated: 07/20/2026, 16:57:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses