CVE-2026-58414: 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, `EnvironmentManager.backup()` recursively collects files using `_collectBackupFiles()`. `_collectBackupFiles()` uses `statSync(full)`, which follows symlinks. If `data/<env>` contains a symlink to a directory outside the environment root, backup recursion follows the symlink and copies external files into `data/<env>/.backups/<backupId>/`. An attacker who can place a symlink under the environment data directory can cause backup operations to disclose files outside the environment root into backup artifacts. The issue is fixed in v5.12.2. `_collectBackupFiles()` now uses `lstatSync` instead of `statSync` and skips any entry where `isSymbolicLink()` is true. Symlinks are never traversed, so `backup()` can no longer follow a link out of the environment root and copy external files into a backup artifact.
AI Analysis
Technical Summary
Network-AI versions before 5.12.2 have a path traversal vulnerability in the EnvironmentManager.backup() method. The backup process uses statSync to collect files recursively, which follows symbolic links. If an attacker can create a symlink inside the environment data directory pointing outside the environment root, the backup operation will follow the symlink and copy files from outside the environment into backup artifacts. This results in unauthorized disclosure of files outside the environment root. The vulnerability is addressed in version 5.12.2 by replacing statSync with lstatSync and skipping symbolic links during backup file collection, preventing traversal outside the environment root.
Potential Impact
An attacker with the ability to place symbolic links under the environment data directory can cause backup operations to disclose files outside the intended environment root. This leads to confidentiality breaches by including unauthorized external files in backup artifacts. The vulnerability does not affect integrity or availability and requires at least low privileges (local access) to exploit.
Mitigation Recommendations
A fix is available in Jovancoding Network-AI version 5.12.2. Users should upgrade to version 5.12.2 or later to prevent backup operations from following symbolic links and disclosing external files. No other mitigation is indicated by the vendor advisory.
CVE-2026-58414: 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, `EnvironmentManager.backup()` recursively collects files using `_collectBackupFiles()`. `_collectBackupFiles()` uses `statSync(full)`, which follows symlinks. If `data/<env>` contains a symlink to a directory outside the environment root, backup recursion follows the symlink and copies external files into `data/<env>/.backups/<backupId>/`. An attacker who can place a symlink under the environment data directory can cause backup operations to disclose files outside the environment root into backup artifacts. The issue is fixed in v5.12.2. `_collectBackupFiles()` now uses `lstatSync` instead of `statSync` and skips any entry where `isSymbolicLink()` is true. Symlinks are never traversed, so `backup()` can no longer follow a link out of the environment root and copy external files into a backup artifact.
CVSS v3.1
Score 5.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 have a path traversal vulnerability in the EnvironmentManager.backup() method. The backup process uses statSync to collect files recursively, which follows symbolic links. If an attacker can create a symlink inside the environment data directory pointing outside the environment root, the backup operation will follow the symlink and copy files from outside the environment into backup artifacts. This results in unauthorized disclosure of files outside the environment root. The vulnerability is addressed in version 5.12.2 by replacing statSync with lstatSync and skipping symbolic links during backup file collection, preventing traversal outside the environment root.
Potential Impact
An attacker with the ability to place symbolic links under the environment data directory can cause backup operations to disclose files outside the intended environment root. This leads to confidentiality breaches by including unauthorized external files in backup artifacts. The vulnerability does not affect integrity or availability and requires at least low privileges (local access) to exploit.
Mitigation Recommendations
A fix is available in Jovancoding Network-AI version 5.12.2. Users should upgrade to version 5.12.2 or later to prevent backup operations from following symbolic links and disclosing external files. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T18:19:58.380Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5e50312a4a8d59895ee3d1
Added to database: 07/20/2026, 16:43:29 UTC
Last enriched: 07/20/2026, 16:58:05 UTC
Last updated: 07/21/2026, 03:44:45 UTC
Views: 11
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.