# CVE-2026-58414: Network-AI: EnvironmentManager.backup() follows symlinked directories and copies files outside the environment root into backups

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T21:42:36.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-6x2m-p4xp-wg22
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Jovancoding Network-AI: < 5.12.2
- network-ai (npm): before 5.12.2
- network-ai network-ai: before 5.12.2

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-6x2m-p4xp-wg22> (exploit, patch, vendor-advisory, web)
- <https://github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3> (patch, web)
- <https://github.com/Jovancoding/Network-AI/releases/tag/v5.12.2> (patch, release-notes, web)
- <https://github.com/Jovancoding/Network-AI> (package)

## Sources

- CVE List: [CVE-2026-58414](https://www.cve.org/CVERecord?id=CVE-2026-58414), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-6x2m-p4xp-wg22](https://github.com/advisories/GHSA-6x2m-p4xp-wg22), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-58414](https://nvd.nist.gov/vuln/detail/CVE-2026-58414), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-58414 · Whole record: https://cve.day/CVE-2026-58414.json · Rebuilt by cve.day 2026-11-25T22:59:29.256Z
