CVE-2026-58413: EnvironmentManager.restore() backup ID path traversal copies arbitrary directories into environment data

Published Jul 20, 2026
·
Updated

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.

Affected Software

2 affected components
Network-AI TypeScript/Node.js multi-agent orchestrator<5.12.2
Network-AI Network-AI<5.12.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Network-AI (TypeScript/Node.js) - EnvironmentManager.restore() to a version that resolves this vulnerability.

    Fixed in 5.12.2

Event History

Jul 20, 2026
CVE Published
via MITRE·04:26 PM
Data Sourced
via MITRE·04:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:18 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-58413?

CVE-2026-58413 has a medium severity rating of 6.1.

2

How do I fix CVE-2026-58413?

To remediate CVE-2026-58413, upgrade Network-AI to version 5.12.2 or later.

3

What does CVE-2026-58413 vulnerability affect?

CVE-2026-58413 affects the EnvironmentManager.restore() function in the Network-AI TypeScript/Node.js multi-agent orchestrator.

4

What kind of vulnerability is CVE-2026-58413?

CVE-2026-58413 is categorized as a path traversal vulnerability.

5

What could exploit CVE-2026-58413 allow an attacker to do?

Exploiting CVE-2026-58413 could allow an attacker to copy arbitrary directories into environment data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203