CVE-2026-58484: 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.listBackups()` reads each backup's `_manifest.json` and trusts the manifest's `path` field. `EnvironmentManager.pruneBackups()` later passes that trusted `entry.path` directly to `rmSync(entry.path, { recursive: true, force: true })`. An attacker who can place or modify a manifest inside `data/<env>/.backups/<name>/_manifest.json` can cause `network-ai env backup prune --env <env> --keep <n>` or any code path invoking `pruneBackups()` to recursively delete an arbitrary path accessible to the Network-AI process user. This is fixed in v5.12.2. `pruneBackups()` no longer passes `entry.path` from the on-disk manifest to `rmSync`. The deletion path is recomputed from a format-validated `entry.backupId`, and a `dirname` containment check confines deletion to exactly one level under the backups directory. A poisoned manifest (e.g. `"path": "/"`) is now inert.
AI Analysis
Technical Summary
Network-AI versions before 5.12.2 contain a path traversal vulnerability (CWE-22) in the EnvironmentManager.pruneBackups() function. This function reads backup manifest files and uses the manifest's path field directly in a recursive deletion call (rmSync). An attacker able to place or modify a manifest file can cause arbitrary recursive deletion of files and directories accessible to the Network-AI process user. The vulnerability is addressed in version 5.12.2 by recomputing deletion paths from validated backup IDs and enforcing directory containment checks, preventing deletion outside the intended backup directory.
Potential Impact
An attacker with the ability to place or modify backup manifest files can cause the Network-AI process to recursively delete arbitrary files or directories on the host system. This results in high impact on integrity and availability of the affected system. There is no confidentiality impact reported. The vulnerability requires local privileges (low attack complexity and privileges) and no user interaction.
Mitigation Recommendations
A fix is available in Network-AI version 5.12.2. Users should upgrade to version 5.12.2 or later to mitigate this vulnerability. The fix involves validating and restricting deletion paths to prevent arbitrary file system deletion. Until upgraded, restrict access to backup manifest files to trusted users only. Patch status is not explicitly stated beyond the fixed version; check the vendor advisory for the latest remediation guidance.
CVE-2026-58484: 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.listBackups()` reads each backup's `_manifest.json` and trusts the manifest's `path` field. `EnvironmentManager.pruneBackups()` later passes that trusted `entry.path` directly to `rmSync(entry.path, { recursive: true, force: true })`. An attacker who can place or modify a manifest inside `data/<env>/.backups/<name>/_manifest.json` can cause `network-ai env backup prune --env <env> --keep <n>` or any code path invoking `pruneBackups()` to recursively delete an arbitrary path accessible to the Network-AI process user. This is fixed in v5.12.2. `pruneBackups()` no longer passes `entry.path` from the on-disk manifest to `rmSync`. The deletion path is recomputed from a format-validated `entry.backupId`, and a `dirname` containment check confines deletion to exactly one level under the backups directory. A poisoned manifest (e.g. `"path": "/"`) is now inert.
CVSS v3.1
Score 7.1high
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 contain a path traversal vulnerability (CWE-22) in the EnvironmentManager.pruneBackups() function. This function reads backup manifest files and uses the manifest's path field directly in a recursive deletion call (rmSync). An attacker able to place or modify a manifest file can cause arbitrary recursive deletion of files and directories accessible to the Network-AI process user. The vulnerability is addressed in version 5.12.2 by recomputing deletion paths from validated backup IDs and enforcing directory containment checks, preventing deletion outside the intended backup directory.
Potential Impact
An attacker with the ability to place or modify backup manifest files can cause the Network-AI process to recursively delete arbitrary files or directories on the host system. This results in high impact on integrity and availability of the affected system. There is no confidentiality impact reported. The vulnerability requires local privileges (low attack complexity and privileges) and no user interaction.
Mitigation Recommendations
A fix is available in Network-AI version 5.12.2. Users should upgrade to version 5.12.2 or later to mitigate this vulnerability. The fix involves validating and restricting deletion paths to prevent arbitrary file system deletion. Until upgraded, restrict access to backup manifest files to trusted users only. Patch status is not explicitly stated beyond the fixed version; check the vendor advisory for the latest remediation guidance.
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: 6a5e56f62a4a8d598968a377
Added to database: 07/20/2026, 17:12:22 UTC
Last enriched: 07/20/2026, 17:26:40 UTC
Last updated: 07/21/2026, 05:45:05 UTC
Views: 16
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.