CVE-2026-58414: Network-AI: EnvironmentManager.backup() follows symlinked directories and copies files outside the environment root into backups
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Network-AIto a version that resolves this vulnerability.Fixed in 5.12.2 - Configuration
Update Network-AI so _collectBackupFiles() uses lstatSync rather than statSync and skips any entry where isSymbolicLink() is true, preventing backup recursion from traversing symlinks outside the environment root.
Network-AI EnvironmentManager.backup() / _collectBackupFiles() symlink handling = Use lstatSync and skip entries where isSymbolicLink() is true (instead of statSync that follows symlinks)
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58414?
CVE-2026-58414 has a medium severity rating of 5.5.
How do I fix CVE-2026-58414?
To fix CVE-2026-58414, update Network-AI to version 5.12.2 or later.
What does CVE-2026-58414 affect?
CVE-2026-58414 affects the backing up functionality of the EnvironmentManager in Network-AI prior to version 5.12.2.
What is the nature of the vulnerability in CVE-2026-58414?
The vulnerability allows `EnvironmentManager.backup()` to follow symlinks, potentially exposing files outside the environment root.
What types of environments are impacted by CVE-2026-58414?
CVE-2026-58414 impacts TypeScript/Node.js environments utilizing the Network-AI orchestrator.