CVE-2026-58413CWE-22CWE-23path-traversal

CVE-2026-58413

Medium · published July 20, 2026

CVSS v3.1
6.1
EPSS
0%
Percentile
8.0
In the wild
Unconfirmed
What it is

Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.12.2, `EnvironmentManager.restore(env, backupId)` computes the backup path with `join(envDir, '.backups', backupId)` and only checks that this path exists. It does not resolve the result or verify that it remains under `data/<env>/.backups`. A caller can pass a traversal backup ID such as `../../../outside/source-dir` to restore files from an arbitrary directory into the target environment data directory. The issue is fixed in v5.12.2. `restore()` now validates `backupId` against `/^[\w\-]+$/` and asserts `dirname(resolve(join(backupsDir, backupId))) === resolve(backupsDir)` before touching the filesystem. Backup IDs containing path separators or `..` are rejected, so a crafted ID can no longer copy directories from outside `.backups/` into the environment.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00188 · 8.0th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-23 · Relative Path Traversal
Published
2026-07-20T21:18Z
Affected products (1)
ProductVersionsFixed in
network-ai/network-ai< 5.12.25.12.2
References (4)
EPSS history
Timeline
  • 20 JUL 16:26Z
    EnvironmentManager.restore() backup ID path traversal copies arbitrary directories into environment data
    cvelistv5