EnvironmentManager.restore() backup ID path traversal copies arbitrary directories into environment data
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Jovancoding | Network-AI | before 5.12.2 | 5.12.2 | Patch available | CNA |
- Network-AI VendorJovancoding Affected before 5.12.2 Fixed in 5.12.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:network-ai:network-ai:*:*:*:*:*:*:*:* | before 5.12.2 | Vulnerable | Jovancoding |
- cpe:2.3:a:network-ai:network-ai:*:*:*:*:*:*:*:* Versions before 5.12.2 Vulnerable ·Jovancoding
Remediation
- Fix · CNA Network-AI (Jovancoding) Fixed in 5.12.2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-58413
References
More Jovancoding Network-ai vulnerabilities
- TI-2026-42088 Network-AI: Poisoned environment backup manifest allows arbitrary recursive deletion during backup pruning CVSS 3.1HIGH 7.1
- TI-2026-42085 Network-AI: AgentRuntime sandbox path-prefix checks allow file access outside the configured base directory CVSS 3.1MEDIUM 6.5
- TI-2026-42086 Network-AI: ApprovalInbox HTTP server has no authentication — anyone can approve pending agent actions CVSS 3.1MEDIUM 5.9
- TI-2026-42025 Path traversal in Jovancoding Network-AI CVSS 3.1MEDIUM 5.5
- TI-2026-34330 Network-AI: Unauthenticated Cross-Origin MCP Tool Invocation via Empty Default Secret CVSS 3.1HIGH 7.6
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences